Getting Data In

Field extraction from Windows eventlog

gltplus
New Member

Windows eventlog are indexed fine.
A particulare evnetlog source "WinEventLog:Application Info" (mind the space) contains the normale message field.

Inside this message field I want to extra a hostname.

sourcetype="WinEventLog:Application Info" | rex field=Message "regex query"(?....) more regex" works all fine. Hostname are captured.

Now I really need this to be done from the props.conf.

I created in the props.conf

["WinEventLog:Application Info"]
EXTRACT-Hostname = same regex as above

But this doesn't seem to work? I'm I missing something?
Something wrong with the sourcetype name (mind the space)?

Tags (1)
0 Karma

493669
Super Champion

it seems that you have added double quotes for source so try without quotes like below:

[WinEventLog:Application Info]
EXTRACT-Hostname = <your regex>
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 ...