Catching generic exception in order to avoid crashing when parsing windows events logs #8513
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #7340
For the time being we are only catching the exception to avoid crashing the process.
The schema description is explained on this page EventType Schema
The downside of this solution is that we are going to miss the event. In order to get those events, it should be as easy as adding the parsing of xml elements:
DebugData,BinaryEventDataandProcessingErrorData. The content of those elements will be flattened out and stored intorow["data"].E.g.
Happy to add those if you are happy to.