Getting Data In

Line breaks per single line for IP address

tbalouch
Path Finder

Hi Guys,

I'm trying to break events in Splunk with a text file with just ip addresss in it and no time stamps. The format is below:

1.1.1.1
1.2.3.4
192.168.1.2

How can I setup my props.conf file to break every line as a single event. I don't really care about timestamps.

0 Karma
1 Solution

dshpritz
SplunkTrust
SplunkTrust

You can set the following in your props.conf for the sourcetype:

[mysourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)

HTH,

Dave

View solution in original post

0 Karma

dshpritz
SplunkTrust
SplunkTrust

You can set the following in your props.conf for the sourcetype:

[mysourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)

HTH,

Dave

0 Karma

tbalouch
Path Finder

Thanks this worked great!!

0 Karma
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 GA in US-AWS!

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 ...