Getting Data In

multi line event, break with a empty line

crazyeva
Contributor

Hi
I want to import some mussy data to splunk
every event takes multi lines
with an empty line declaring its end
likes below shows two events:
XXX XXX XXXX
XXX XXX XX

XXX XXXX XX
XXXX XX XXXXX
XX XXX
The empty line seems to be the only basis on which could be depended to break up the event
But when i "preview" this data, empty lines are filtered.

Tags (1)
1 Solution

ziegfried
Influencer

These props.conf settings should help:

[mysourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = ((?:\r?\n){2,})

View solution in original post

ziegfried
Influencer

These props.conf settings should help:

[mysourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = ((?:\r?\n){2,})

crazyeva
Contributor

exactly solved

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...