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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...