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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...