Reputation: 1
Is there any way to get event viewer logs to .txt file. I tried going to event viewer properties and changing dir and .txt.
However when opening .txt it seems to be encrypted. Want plain text so that I can send to splunk and have a dashboard set up.
Thanks
Upvotes: 0
Views: 484
Reputation: 2651
An .evtx
file is a binary representation of the Event Viewer Log file. Due to the way Microsoft writes these files, it relies on the DLLs of the server that produces these files, so the files can only be open on the same machine, or at least, very similarly configured.
Splunk should be able to open these files by using a regular monitor input. Don't set a sourcetype, as it will be automatically extracted.
Alternatively, you may have some luck with https://github.com/vavarachen/evtx2json
Upvotes: 2