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 7.0: [Winlogbeat] Prevent Winlogbeat from dropping events with invalid XML #11040

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 7.0 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)

* [Winlogbeat] Escape control characters in XML

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 requested a review from a team as a code owner March 1, 2019 23:50
@adriansr adriansr merged commit 5831462 into elastic:7.0 Mar 2, 2019
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