Getting Data In

transforms.conf use two conditions

rex_rafa
New Member

I have an event in index xxx with events coming from different hosts.
I need to create a transforms.conf to filter when the event has a specific word than I route for another index.

transforms.conf
[abc]
REGEX = debug
DEST_KEY = _MetaData:Index
FORMAT = debug

That config works well to filter the word and send it to the correct index, but I need to send for this index only words for specifics hosts.
Like that:
If I have debug AND host=this_host send to index debug.
How I can do that?

Tags (1)
0 Karma

marycordova
SplunkTrust
SplunkTrust
0 Karma
Get Updates on the Splunk Community!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

Industry Solutions for Supply Chain and OT, Amazon Use Cases, Plus More New Articles ...

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

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...