Splunk Search

How to remove event that contain special characters only

dantimola
Communicator

Hi Splunk Ninjas,

Good Day. Just like to ask on how can I remove event that contain special character only, as sample below.

Thanks.

alt text

Tags (2)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Follow the configuration specified in below link:
http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Discard_specific_ev...

On Indexer/Heavy Forwarder
In props.conf, set the TRANSFORMS-null attribute:

[yoursourcetype]
TRANSFORMS-null= setnull

Create a corresponding stanza in transforms.conf. Set DEST_KEY to "queue" and FORMAT to "nullQueue":

[setnull]
REGEX = ^\*+
DEST_KEY = queue
FORMAT = nullQueue

Restart Splunk Enterprise.

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Follow the configuration specified in below link:
http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Discard_specific_ev...

On Indexer/Heavy Forwarder
In props.conf, set the TRANSFORMS-null attribute:

[yoursourcetype]
TRANSFORMS-null= setnull

Create a corresponding stanza in transforms.conf. Set DEST_KEY to "queue" and FORMAT to "nullQueue":

[setnull]
REGEX = ^\*+
DEST_KEY = queue
FORMAT = nullQueue

Restart Splunk Enterprise.

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 ...