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

Cherry-pick #11006 to 6.6: [Winlogbeat] Prevent Winlogbeat from dropping events with invalid XML #11039

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Mar 1, 2019

Cherry-pick of PR #11006 to 6.6 branch. Original message:

Golang's xml parser is refusing to process XML documents that contain an ASCII control character, resulting in those events being dropped. This patch pre-processes the XML document in order to replace invalid characters with the unicode escape sequence \uNNNN.

…elastic#11006)

Golang's xml parser is pretty strict about the presence of control
characters in the XML it is fed. This patch replaces those characters
with an unicode escape sequence: "\uNNNN".

(cherry picked from commit a6102a8)
@adriansr adriansr force-pushed the backport_11006_6.6 branch from 7198b66 to a882f21 Compare March 1, 2019 23:49
@adriansr adriansr merged commit 2d78bfb into elastic:6.6 Mar 2, 2019
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…elastic#11006) (elastic#11039)

Golang's xml parser is pretty strict about the presence of control
characters in the XML it is fed. This patch replaces those characters
with an unicode escape sequence: "\uNNNN".

(cherry picked from commit 6a078f5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants