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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...