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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...