Knowledge Management

Routing events on UF for sourcetypes with INDEXED_EXTRACTIONS set

hrawat
Splunk Employee
Splunk Employee

Can we apply following example on UF?

Keep specific events and discard the rest

https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Keep_specific_eve...


The answer is no. The example is for any non-UF instance.
For UF you can modify the example


Edit props.conf and add the following:
[source::/var/log/messages]
TRANSFORMS-set= setnull,setparsing
Edit transforms.conf and add the following:
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = \[sshd\]
DEST_KEY = _TCP_ROUTING
FORMAT = <valid-tcpoutgroup(s)>


Or

Edit props.conf and add the following:
[source::/var/log/messages]
TRANSFORMS-set= setnull,setparsing
Edit transforms.conf and add the following:
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = \[sshd\]
DEST_KEY = queue
FORMAT = parsingQueue

 

Labels (1)
Tags (1)
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...