Getting Data In

How to override the props source?

coreyf311
Path Finder

I have the below configured but source is not being over written. I am trying to wild card anything after Windows in the path.

props.conf

[source::/var/log/Windows/*]
TRANSFORMS-changesource=changesource

transforms.conf

[changesource]
FORMAT= source::WinEventLog:Security
DEST_KEY=MetaData:Source

I have it deployed to my heavy forwarder. It's not working there. I am also curious if I can deploy something like this to a Universal Forwarder after I am sure the syntax is correct?

0 Karma
1 Solution

FrankVl
Ultra Champion

If you have further sub-directories behind /var/log/Windows/, you need to use the ... wildcard instead of *. So try [source::/var/log/Windows/...] instead.

And no, these operations cannot be done on UF. Unless this specific source value matches a specific inputs.conf stanza, then you could set the source field as part of the inputs.conf.

View solution in original post

0 Karma

FrankVl
Ultra Champion

If you have further sub-directories behind /var/log/Windows/, you need to use the ... wildcard instead of *. So try [source::/var/log/Windows/...] instead.

And no, these operations cannot be done on UF. Unless this specific source value matches a specific inputs.conf stanza, then you could set the source field as part of the inputs.conf.

0 Karma

coreyf311
Path Finder

I would prefer to set source as part of the inputs.conf Can I override the source in inputs.conf?

0 Karma

coreyf311
Path Finder

the current sources are /var/log/LOGCENTRAL/Windows/hostname/hostname.log. This obviously varies as there are many hosts writing logs. My props is now [source::/var/log/LOGCENTRAL/Windows/...] and thats not working either.

0 Karma

FrankVl
Ultra Champion

I think you need to add a REGEX = . to your transforms.conf. That setting is required for index-time extractions like this. Sorry for not catching that earlier.

0 Karma

FrankVl
Ultra Champion

Yes, you can simply add source = WinEventLog:Security to the relevant inputs.conf stanza.

0 Karma

coreyf311
Path Finder

a simple read of the inputs.conf spec gave me the answer 🙂 Thanks!

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...