Getting Data In

Why is must_break_after configuration not working?

mjones414
Contributor

I have a large (10's of thousands of lines) data stream that runs every 10 minutes and I want it to break after this line:

sharing = default_shared

I tried putting in:

MUST_BREAK_AFTER = (sharing = default_shared)

But this did not work.

I was hoping it would take the literal string, but it's not working.

0 Karma
1 Solution

somesoni2
Revered Legend

Try something like this

[yoursourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER= ([\r\n]+)(?=sharing\s*=\s*default_shared)
... other configs....

View solution in original post

0 Karma

somesoni2
Revered Legend

Try something like this

[yoursourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER= ([\r\n]+)(?=sharing\s*=\s*default_shared)
... other configs....
0 Karma

mjones414
Contributor

Worked like a champ!! Thanks so much!

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...