Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for new lines in influx line protocol fields. #8499

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

ivorybilled
Copy link
Contributor

closes #8095

@sjwang90 sjwang90 added the fix pr to fix corresponding bug label Dec 3, 2020
@@ -137,6 +144,33 @@ func (e *Execd) cmdReadOut(out io.Reader) {
}
}

func (e *Execd) cmdReadOutStream(out io.Reader) {
parser := influx.NewStreamParser(out)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you need this to avoid side effects!?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the stream parser reads directly from that io.Reader stream and is able to correctly parse new line characters.

@srebhan srebhan self-assigned this Dec 4, 2020
@ivorybilled ivorybilled merged commit f7950be into master Dec 4, 2020
@ivorybilled ivorybilled deleted the addNewLineSupportExecdProcessor branch December 4, 2020 21:48
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

execd processor does not handle newline characters in strings
4 participants