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
SplunkTrust
SplunkTrust

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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...