Monitoring Splunk

index exported evt / evtx files

aweishe1
Explorer

Hi,

I am trying to index the exported evt / evtx files into splunk. I am using input.conf to monitor the directory on the same server where the evtx are exported (same server, same OS - Windows 2012 R2):

[monitor://D:\Splunk\*.evtx]
disabled = 0
sourcetype = WinEventLog:Security:Test
index = wineventlog

However, once the data got indexed, i tried to search and I found these:

ElfFile\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00

Help appreciated. Thanks!

Tags (1)

sudosplunk
Motivator

Indexing exported windows event logs have some limitations, due to Microsoft proprietary way to generate those .evt files. Windows event log (*.evt) files are in binary format. You cannot monitor them like you do a normal text file. The splunkd service monitors these binary files by using the appropriate APIs to read and index the data within the files.

Splunk Enterprise uses the following stanzas in inputs.conf to monitor the default Windows event logs:

# Windows platform specific input processor.
[WinEventLog://Application]
disabled = 0 
[WinEventLog://Security]
disabled = 0 
[WinEventLog://System]
disabled = 0 

From another answer -
workaround -
maybe, you can try to convert these files to text files or csv files and upload to splunk.
http://serverfault.com/questions/783708/convert-saved-evtx-files-to-text

0 Karma

marycordova
SplunkTrust
SplunkTrust

I think the problem with using those stanzas in inputs.conf is that it would monitor the local event files and not the exported ones...

@marycordova
0 Karma

sparkspree
New Member

this is a late response, but as someone going through a similar issue and for anyone who may come across this for help in the future, the issue with the stanza provided is that you are using the same sourcetype that Splunk uses when logs are directly forwarded and indexed from Windows host to the Splunk server. For your case you would want to change it to:

[monitor://D:\Splunk\*.evtx]
disabled = 0
sourcetype = preprocess-winevt
index = wineventlog
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...