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
Revered Legend

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
Revered Legend

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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...