Getting Data In

How and where do I configure props and transforms to forward a few events into a particular index by host?

allan_newton
Path Finder

Hi,

I have 4 forwarders, 4 search heads, and 2 forwarders in my Splunk cluster. Now one of the forwarders is configured to read data from UDP port 514. The data comes in to the forwarder and it then is forwarded to the indexers.

Now I need to apply configurations in transforms.conf and props.conf to write few events into a separate index by host. Where do I put those configurations? Should I do the changes in the forwarder or the indexer?

Thanks.

0 Karma
1 Solution

MuS
Legend

Hi allan_newton,

try something like this,un-tested and out of my head:

props.conf

[source::udp:514]
TRANSFORMS-001_changemetadata = redirect_to_index_foo

transforms.conf

[redirect_to_index_foo]
SOURCE_KEY = MetaData:Host
REGEX = ^host::(10.10.10.d+)$
FORMAT = foo
DEST_KEY = _MetaData:Index

Don't forget to restart the forwarder after you changed the props and transforms.
Hope this helps ...

cheers, MuS

View solution in original post

0 Karma

MuS
Legend

Hi allan_newton,

try something like this,un-tested and out of my head:

props.conf

[source::udp:514]
TRANSFORMS-001_changemetadata = redirect_to_index_foo

transforms.conf

[redirect_to_index_foo]
SOURCE_KEY = MetaData:Host
REGEX = ^host::(10.10.10.d+)$
FORMAT = foo
DEST_KEY = _MetaData:Index

Don't forget to restart the forwarder after you changed the props and transforms.
Hope this helps ...

cheers, MuS

0 Karma

allan_newton
Path Finder

Instead of ^host::(10.10.10.d+)$ can i use host::(10.10.10.32) ?

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 ...