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!

Introducing the Splunk Community Dashboard Challenge!

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

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...