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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...