Dashboards & Visualizations

Each line of the text file needs to be appeared as an event

Rukmani_Splunk
Path Finder

Hi All,
I am new to line breaking concepts. I have made a text file as input to the splunk. I want each line as an event , but all the lines are displayed as an event. I had made following modifications in props.conf file

[host::omstxt]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\\r\\n]+)

any other configurations needs to changed ?

Kindly help.

Thanks

Tags (2)
0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

Your line breaker should be:

LINE_BREAKER = ([\r\n]+)

LINE_BREAKER is a regex, and doesn't need escaped. Additionally, that regex is the default, so you don't even need to define it as long as your Line Merge is false.

alacercogitatus
SplunkTrust
SplunkTrust

Great! Please accept the answer so others may find it useful.

0 Karma

Rukmani_Splunk
Path Finder

Thanks it works:)

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...