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!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...