Getting Data In

How to split certain events to 2 different indexers from a 6.1 universal forwarder?


Hi, want to split out certain eventid to 2 different indexers from a universal forwarder 6.1
could this work?
tried to create on 2 separated apps but it only took on the first one.

whitelist= Category="^Error"
index = Awindows

whitelist= Category="^Info"
index = Bwindows

want to see if i can control on the client side, and not on the indexer

0 Karma


That approach doesn't work because you're essentially overwriting the same value from the second stanza - it has the same name so it's the same stanza.

You can rewrite the index value in transforms.conf:

REGEX = Category="Error"
DEST_KEY = _MetaData:Index
FORMAT = Awindows

REGEX = Category="Info"
DEST_KEY = _MetaData:Index
FORMAT = Bwindows

Then refer to those stanzas in props.conf:

[sourcetype, source, or host identifier]
TRANSFORMS-index = send_to_A_index,send_to_B_index

Usually these are on the indexer(s), and in most cases it's best to keep it that way. However, it's possible to use a heavy forwarder on the source host to have the HF do the parsing, filtering, etc.

0 Karma
Get Updates on the Splunk Community!

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...

Understanding Generative AI Techniques and Their Application in Cybersecurity

Watch On-Demand Artificial intelligence is the talk of the town nowadays, with industries of all kinds ...