Getting Data In

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

tlow
Explorer

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.

[WinEventLog://Security]
disabled=0
whitelist= Category="^Error"
index = Awindows

[WinEventLog://Security]
disabled=0
whitelist= Category="^Info"
index = Bwindows

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

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

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:

[send_to_A_index]
REGEX = Category="Error"
DEST_KEY = _MetaData:Index
FORMAT = Awindows

[send_to_B_index]
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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...