Splunk Search

Why is the event break not working when there is a new line?

Mostlyqueries
Explorer

Sample data:

    {
      "sensorName": "test1"
    }
    {
      "sensorName": "test2"
    }
    {
      "sensorName": "test3"
}

Tried several regex patterns and none will show as working in the Add Data screen. Same patterns work on regex websites.

0 Karma

somesoni2
Revered Legend

Try with following

SHOULD_LINEMERGE = false
LINE_BREAKER = (\r\n]+)(?\{)
0 Karma

yannK
Splunk Employee
Splunk Employee

Your data looks like json, check what is your sourcetype (and if on the forwarder it has a INDEXED_EXTRACTIONS=json in props.conf for the sourcetype)
If it's the case we should expect an automatic json event breaking.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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