Getting Data In

How do I ignore a string of asterisks ("*") in props.conf?

a548506
Path Finder

Hello I am trying to ignore a string of ***** that are showing up in my data. The asterisks are showing up before Processing Interface system: and after Processed Interface System.

This is the data sample:

*************************************************


Processing Interface system: SOME STRING HERE ...

Command: DUMMY DATA HERE

Connecting to IP.ADDRESS.HERE...
NO FILE(s) EXIST ON REMOTE DIRECTORY: SOME PATH HERE..

Processed Interface System   : SOME STRING HERE

*************************************************


Processing Interface system: SOME STRING HERE ...

Command: DUMMY DATA HERE

Connecting to IP.ADDRESS.HERE...
NO FILE(s) EXIST ON REMOTE DIRECTORY: SOME PATH HERE..

Processed Interface System   : SOME STRING HERE

*************************************************

My Props.conf:

SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\w{10,} \w{9} \w{6}:
MUST_BREAK_AFTER=\w{9} \w{9} \w{6}  

I am breaking the events off of: Processing Interface system and must break after:Processed Interface System. This is how the customer wants the data broken up by. We are totally ignoring the timestamps,

How can I also ignore the ********* that are showing up as "events" in Splunk?

Thanks!

0 Karma
1 Solution

somesoni2
Revered Legend

You can either use SEDCMD command in props.conf to remove thos (make the event with asterisk as blank so that Splunk will drop those) or use props-transforms to route those events to nullQueue (won't be indexed.)

SEDCMD
props.conf

[yourSourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\w{10,} \w{9} \w{6}:
MUST_BREAK_AFTER=\w{9} \w{9} \w{6}  
SEDCMD-removejunk = s/^\*+.+//g

Props-transforms
props.conf

[yourSourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\w{10,} \w{9} \w{6}:
MUST_BREAK_AFTER=\w{9} \w{9} \w{6} 
TRANSFORMS-removejunk = remove_asterisks_line

transforms.conf

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

View solution in original post

somesoni2
Revered Legend

You can either use SEDCMD command in props.conf to remove thos (make the event with asterisk as blank so that Splunk will drop those) or use props-transforms to route those events to nullQueue (won't be indexed.)

SEDCMD
props.conf

[yourSourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\w{10,} \w{9} \w{6}:
MUST_BREAK_AFTER=\w{9} \w{9} \w{6}  
SEDCMD-removejunk = s/^\*+.+//g

Props-transforms
props.conf

[yourSourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\w{10,} \w{9} \w{6}:
MUST_BREAK_AFTER=\w{9} \w{9} \w{6} 
TRANSFORMS-removejunk = remove_asterisks_line

transforms.conf

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

a548506
Path Finder

somesoni2,

This worked like a charm. Thank you for providing two separate configurations. I went ahead and went the transforms route.

Thanks again.

0 Karma

mfrost8
Builder

Are you looking to prevent those asterisk lines from being indexed at all? If so, have a look at
https://answers.splunk.com/answers/232641/is-there-a-way-to-ignore-certain-events.html

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...