Splunk Search

Send certain fields to null queue

npandith
Explorer

We are indexing logs from network devices and we need to reject or send certain fields to null queue.

The logs looks like this-
Fri Aug 24 14:59:47 2012 sensor__id=101 event_id=1111 event_sec=192134787 event_usec=213341 sid=4 gen=1 rev=6 class=33 priority=1 src_addr=192.168.0.33 dst_addr=192.169.0.55

We have field "sensor_id" and from the above example we have "sensor_id=101". SO we want logs only from the sensor__id=101 and reject any logs from other sensor_id=1 or sensor_id=2 ...

Need you help in regex for fixing this!!

Tags (2)
0 Karma

Ayn
Legend

There are loads of questions covering this on splunkbase. The docs has very helpful sections on it, too: http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad#Discard_specific_event...

Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...