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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...