Splunk Search

Routing to null queue in a cluster not working

responsys_cm
Builder

I have a number of Snort sensors that are sending syslog events to a Splunk forwarder. That forwarder in turn forwards the events to three indexers in a cluster.

Some snort rules are generating useless events where the body is: " |". I ran a search to test that my regex matches: index=ids | rex \_raw="^\s\|$" and it matches those events.

I created the following in transforms.conf:

[snort_null]  
REGEX = "^\s\|$"  
DEST_KEY = queue  
FORMAT = nullQueue  

And in props.conf:

[snort]  
TRANSFORMS-null = snort_null

I've applied this to both the forwarder and the indexers in the cluster, but the events keep showing up. I feel like I'm taking crazy pills...

What am I doing wrong here?

Thx.

Craig

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Remove the double quotes in transforms.conf - those are necessary for the rex command because it takes a string, but they aren't part of the regex.

khourihan_splun
Splunk Employee
Splunk Employee

@martin_mueller 's answer should work. Also make sure you apply your changes via cluster master's splunk apply cluster-bundle command.

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...