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!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...