Dashboards & Visualizations

line breaking

srinathd
Contributor

Need to break a log file into multiple events while indexing if there are no newline characters
sample log file data:
\xE1\xA\x01\x00RFD \x00\x00\x00\x1\x00\x00\x7\x00\x00\x00\x3\x11\x00\x00\x33MQSIR \x00\x00\x00\x00\x00\x00\x4\xB8\x00\x00\x01HTestINF/LI/Item/Tested \x00\x00\x6\x7CYSRINATH 00000153311234ABCD 2013-10-03-02.33.51.750348ANDHRA IND AP 12.123+ 12.123+ \xE2\xB\x02\x00RFO \x00\x00\x00\x2\x00\x00\x7\x00\x00\x00\x3\x12\x00\x00\x34MQSJR \x00\x00\x00\x00\x00\x00\x4\xB8\x00\x00\x02HTestINF/LI/Item/Tested \x00\x00\x6\x8CYSRINATH 00001483531234ABCD 2013-10-03-02.33.52.033155ANDHRA IND AP 12.123+ 12.123+

Highlighted text is the starting of second event in the log

Tags (2)
0 Karma
1 Solution

alacercogitatus
SplunkTrust
SplunkTrust

You can try setting the line breaker in props.conf. This regex will look for whitespace at least 35 characters long, and then split the line. This will require a restart of Splunk.

[my_sourcetype]
LINE_BREAKER = (\s{35,})

View solution in original post

alacercogitatus
SplunkTrust
SplunkTrust

You can try setting the line breaker in props.conf. This regex will look for whitespace at least 35 characters long, and then split the line. This will require a restart of Splunk.

[my_sourcetype]
LINE_BREAKER = (\s{35,})

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