All Apps and Add-ons

Route Traffic to Index via Transforms.conf and Props.conf

hagjos43
Contributor

Here is our situation:
Universal forwarders(UF) on hosts (50-ish) are sending data to a heavy forwarder(HF) configured to store AND forward which is sending data to our Indexer. Our data is currently coming into the "main" index, however we would like it to go into a different index we'll call it "norris".

For simplicity let's just say we cannot modify the Universal Forwarders Inputs.conf.

I modified the props.conf and tranforms.conf on my indexer and had zero luck. Here is what I modified:

#props.conf
[host::chuck01]
TRANSFORMS-routing_for_norris_index = route_to_norris_index

#Transforms.conf
#Route to an alternate Index:
[route_to_norris_index]
DEST_KEY = _MetaData:Index
REGEX=(.*)
FORMAT = norris

Do I need to add this to the HF transforms and props as well?

0 Karma

kheli
Path Finder

try this in transforms.conf

[route_to_norris_index]
DEST_KEY = _MetaData:Index

note that there is space between REGEX and equal sign

REGEX = (.*)
FORMAT = norris

Also make sure that the host field value is correct

0 Karma

hagjos43
Contributor

I tired and unfortunately it did not work.

Do the transforms and props config files need to be modified at the indexer or the Heavy Forwarder?

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...