Getting Data In

How do I blacklist events with a field containing a specific value?

dbuehler
Loves-to-Learn Everything

I have a set of JSON data and I would like to ignore (blacklist) all events where the field "id.orig_h" contains the value "192.168.0.1".

So far, I've tried using the blacklisting procedure for Windows EventCodes as a model, but with no success. Example EventCode blacklist:

[WinEventLog:Security]
blacklist1 = EventCode = "4662" Message = "Account Name:\s+(example account)"

What I've tried:

1) Adding the blacklist underneath the monitor stanza in inputs.conf

[monitor:///opt/bro/logs/current]
index = yada
sourcetype = yadayada
blacklist = id.orig_h = "192.168.0.1"

2) Adding the blacklist under a separate sourcetype stanza in inputs.conf

[monitor:///opt/bro/logs/current]
index = yada
sourcetype = yadayada

[yadayada]
blacklist = id.orig_h = "192.168.0.1"

How can I achieve this?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The technique for blacklisting Windows event log data only works for Windows event log data. To ignore other events, use props and transforms to send selected events to the NULL queue. See https://docs.splunk.com/Documentation/Splunk/8.0.3/Forwarding/Routeandfilterdatad#Filter_event_data_... and https://answers.splunk.com/answers/59370/filtering-events-using-nullqueue-1.html .

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...