Splunk Search

Why are logs coming up with hyphens/dashes?

jackin
Path Finder

Can anyone suggest why the logs are coming up like this? I added the monitoring stanza.

Could anyone suggest some troubleshooting steps/solution?

 

jackin_0-1645108093020.png

inputs.conf stanza

[monitor:///opt/netmonitor/LOG/*]
index = osnix
sourcetype = ping_status_log_new
crcSalt = <SOURCE> 

 

Labels (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jackin,

The logs you're indexing contain a line separation.

You couls filter it following the instructions at https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Filter_event_data...

in few words:

in props.conf

 

[ping_status_log_new]
TRANSFORMS-null= setnull

 

in transform.conf

 

[setnull]
REGEX = \-{10}
DEST_KEY = queue
FORMAT = nullQueue

 

Ciao.

Giuseppe

0 Karma

PickleRick
SplunkTrust
SplunkTrust

That can also be a separator between events and the events themselves can be multilined.

In such case you'd do something like

LINE_BREAKER = (-{20,}[\r\n])
SHOULD_LINEMERGE = false
0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...