Splunk Search

How to break events as Every Line

dantimola
Communicator

Hi All,

What's the appropriate regex for event break Every Line? Is my props.conf correct?

[index_name]
LINE_BREAKER = ([\r\n]+)
0 Karma
1 Solution

asimagu
Builder

hi there, yes, that is correct.
However the stanza name should not be an index name but a sourcetype name.

Also, you could use
SHOULD_LINEMERGE = false

more info here: http://docs.splunk.com/Documentation/Splunk/6.5.3/Admin/Propsconf

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi dantimola
to have each event in one line use

SHOULD_LINEMERGE = false

I suggest, before logs indexing, try to index a test copy of your logs using the web extractor (inserting them in a test index), in this way, you can build your props.conf by web interface and see every configuration (timestamp, line break, etc...).
Bye.
Giuseppe

0 Karma

asimagu
Builder

hi there, yes, that is correct.
However the stanza name should not be an index name but a sourcetype name.

Also, you could use
SHOULD_LINEMERGE = false

more info here: http://docs.splunk.com/Documentation/Splunk/6.5.3/Admin/Propsconf

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...