Hi All,
Have seen a few options for the issue I have, but wanted to know if Splunk can handle applying multiple props.conf settings to a specific feed.
ISSUE:
We have a sourcetype coming in that needs to have date format set - this part is easy. Complication is that feed is coming from servers in different timezones as well.
PROPOSED SOLUTION:
Wondering if I can have props stanza for sourcetype to configure date format but also a secondary stanza for hosts to define timezone.
Something like:
It's true the documentation does not say "put this setting on your UF", but it does say the setting on the forwarder will be used if the time zone is not found in the data or in the indexer's settings.
To find out what props the UF uses, search props.conf.spec for "input time".
If the data is coming from Universal Forwarders on each host then add the TZ setting to the broken_sourcetype stanza in the props.conf file on each UF.
Thanks @richgalloway ,
I wasn't sure if this would work as I couldn't find anything to say this would get picked up at the UF level, in fact most things I read suggested otherwise.
From what I read, UF processes very little from Props / Transforms - do you know if there is any documentation that outlines what works at UF level and what needs to be done at HF / IDX?
It's a fairly well-known feature, but not well publicized. See https://docs.splunk.com/Documentation/Splunk/latest/Admin/PropsConf#:~:text=TZ%20
This doesn't really specify whether this can be run from UF. Most things I have read indicate that parsing on UF is limited to structured formats like csv and event line splitting.
Given your knowledge, I'm happy to trust that you know what you are talking about, but it would be nice to have some supporting documentation that outlines exactly what can be done at UF and what needs to be done on HF / IDX.
It's true the documentation does not say "put this setting on your UF", but it does say the setting on the forwarder will be used if the time zone is not found in the data or in the indexer's settings.
To find out what props the UF uses, search props.conf.spec for "input time".