Splunk Search

Must break event after x characters

himynamesdave
Contributor

I have events that are all 144 chars.

Is there a setting in props.conf (not regex) that I can use to specify 144 chars to break after? I can't find anything in the docs.

If not, does anyone have a solid regex to do this?

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

In props.conf? Check.
Not regex? Uhhhmmm...

Try this:

[144_char_sourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = .{144}()

The empty capturing group () is important.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

In props.conf? Check.
Not regex? Uhhhmmm...

Try this:

[144_char_sourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = .{144}()

The empty capturing group () is important.

himynamesdave
Contributor

was hoping for a char_length= but that works just as well 🙂

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

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