Getting Data In

Multi line event not breaking

shpot
New Member

Hello Splunk community! I have a monitored input file. A process writes a header to a continuous log file and about a minute or so later results are appended to the log. Because the lag between the header and the results is so great, Splunk is seeing this as two separate events, where in fact it should be one multi-line event (header & results). I've tried all sorts of line breaking options in props.conf but nothing seems to work. Does anyone out there have any suggestions? I can recreate it with a simple test script with a sleep, running through a while loop.

echo "date "+%F %T" This is the header" >> $OUT
sleep 30
echo "Slept for 30 seconds" >> $OUT
echo "DONE" >> $OUT

SHOULD_LINEMERGE=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=25
TIME_PREFIX=^
TIME_FORMAT=%Y-%m-%d %H:%M:%S
BREAK_ONLY_BEFORE_DATE=true
NO_BINARY_CHECK=true

0 Karma

nareshinsvu
Builder

Did you try

LINE_BREAKER=([\r\n]+)\d{4}\-\d{2}\-\d{2}\s+\d{2}\:\d{2}\:\d{2}
0 Karma

shpot
New Member

Thank you for your reply. It did not work.

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...