Splunk Search

Forward certain items to indexer and then split into multiple indexes.

tachu
Explorer

I've got a heavy forwarder that is filtering out lines from a monitor. and the rest is being send to nullQueu

props.conf

[source1]
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = false
MAX_TIMESTAMP_LOOKAHEAD=35
pulldown_type = 1
TRANSFORMS-set= setnull,setparsing

transforms.conf

[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = (?i)event=(event1|event2)
DEST_KEY = queue
FORMAT = indexQueue

in my indexer i did this

props.conf

[source1]
TRANSFORMS-index = splitevent1,splitevent2
EXTRACT-ip = ^(?P<ip>[^,]+)

transforms.conf

[splitevent1]
REGEX = (?i)event1
DEST_KEY = _MetaData:Index
FORMAT = event1index

[splitevent2]
REGEX = (?i)event2
DEST_KEY = _MetaData:Index
FORMAT = event2index

events are still going to the main index. and my defined indexes event1index and event2index are empty.. any ideas???

Tags (3)
0 Karma
1 Solution

dshpritz
SplunkTrust
SplunkTrust

Have you tried adding the same configs that are on the indexer to the heavy forwarder?

Dave

View solution in original post

0 Karma

dshpritz
SplunkTrust
SplunkTrust

Have you tried adding the same configs that are on the indexer to the heavy forwarder?

Dave

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...