Splunk Search

filter source

chanduira
Explorer

Hi Experts,

I am getting data from 10 sources, I want to send 3 source data to nullque.

I tried with below props.conf and transforms.conf configuration. But first source is filtering events from reset is not working.

vi props.conf
[source::ghcmapp]
[source::lsof]
[source::ps]
TRANSFORMS-null = setnull

vi transforms.conf

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

Tags (1)
0 Karma

chanduira
Explorer

Tried with individual stanza for each source, but its not working.

0 Karma

renjith_nair
Legend

You original config entries might be different but just to confirm, did you add TRANSFORMS-null=setnull under each of the source stanza? If not add the entry to each of the source stanza you want to filter- in this case ghcmapp,lsof,ps

You can set its based on sourcetype spec also , for eg:

[ps]
TRANSFORMS-null = setnull

http://docs.splunk.com/Documentation/Splunk/6.4.2/Forwarding/Routeandfilterdatad#Discard_specific_ev...

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...