Added option to export as JSON file, split method to parse evtx lines #4
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.
Hello!,
I have added to evtxtoelk.py script the option to write the output to a
.json
file, this allows to ingest such events by any logcollector software that supports JSON, e.g. Wazuh.I have tested all included or modified methods with ELK 7.9.1 (All seems to work as expected).
Some examples:
Event from security event channel in JSON format (from output file)
I tried to modify the options less than possible so I changed ELK IP parameter to
output
that let the user introduce the combination ofIP:PORT
option or JSON filename (finished in.json
) to select output method.Execution example:
To JSON file:
To ELK:
Kibana discover example

I have also added a debug option to see the processed events in the JSON output.
I hope it will help to solve some data ingestion related issues.
Regards!.