Getting Data In

need props.conf for custom log

rileyken
Explorer

I have a custom log in the format where each new record has a entry followed by a pipe (|)

example log:
< date time> |

< date time> |

....

How do I get it to split records on the line that ends in pipe?

Tags (2)
0 Karma

rileyken
Explorer

I am wondering about the xml payload aspect of it in my sample log I have two events each with an event def (ending in pipe) followed by a xml payload which can be 5 lines to maybe 50 lines max

< date time> |

< date time> |

does the line break on | and the line merge take care of having all of the xml payload in the same event"

0 Karma

MuS
Legend

Hi rileyken,

set in your props.conf for that sourcetype something like this:

LINE_BREAKER = \|

Maybe you also need to set

SHOULD_LINEMERGE = [true|false]
* Defaults to true.

to false.....

hope this helps ...

cheers, MuS

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...