Getting Data In

Tricky Line break

simuvid
Splunk Employee
Splunk Employee

Hi folks,

I have following text with no timestamps, but some numeric markers that I wanna use for a line break:

21.2 This is some dummy text. 
21.3 is some dummy text.This is some dummy text.This is some dummy text. 21.4 This is some dummy text.This is some dummy text.This is some. 21.5 This is some dummy text.This is some dummy text.This is some dummy text.This. 
21.6 dummy text.This is some dummy text.This is some dummy text.This is some dummy text. 21.7 This is some dummy text.This is some dummy text.This is some dummy text.This is some dummy text.

You see that there is no clear newline or timestamp, so I wanna use the numbers, divided by a point, for line breaking.

Unfortunately I can't find a way how to do that.

Any hints or help is highly appreciated!

Cheers,

simuvid

Tags (1)
0 Karma
1 Solution

ziegfried
Influencer

Try this one:

LINE_BREAKER = (?m)(\s*)\d+\.\d+\s+
DATETIME_CONFIG=current

View solution in original post

wollinet
Path Finder

Do you want the line breaker be removed from the event ? I think

LINE_BREAKER = (?m)([0-9]{0,}.[0-9]{0,})

removes the match from the event. If you want to keep it, you need a look ahead or behind:

LINE_BREAKER = (?m)\s(?u\d+.\d+\s) SHOULD_LINEMERGE = false

0 Karma

simuvid
Splunk Employee
Splunk Employee

Hi ziegfried,

thanks for your help.

At least that one worked:

LINE_BREAKER = (?m)([0-9]{0,}.[0-9]{0,})

Have a great day!

Cheers,

simuvid

0 Karma

ziegfried
Influencer

Try this one:

LINE_BREAKER = (?m)(\s*)\d+\.\d+\s+
DATETIME_CONFIG=current

gkanapathy
Splunk Employee
Splunk Employee

Best is this, actually: ([\r\n]+)\d+.\d+\s

0 Karma

simuvid
Splunk Employee
Splunk Employee

Of course I made a minor mistake:

Leave the attribute: LINE_BREAKER_LOOKBEHIND! It is not needed here,
but even then the extraction is not working.

0 Karma

simuvid
Splunk Employee
Splunk Employee

Hi Siegfried,

where is Roy? 🙂

I tried yours and also following:
LINE_BREAKER = [0-9]{0,}.[0-9]{0,}
LINE_BREAKER_LOOKBEHIND = 0
SHOULD_LINEMERGE = true

Unfortunately are both not working?!

Cheers,

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...