Splunk Enterprise

Need line breaker for below two types of events

Santosh2
Path Finder

i have two types of events which starts with below two formats:
2022-01-18 15:20:42,727, xyz........................

[Sun Mar 16 15:21:18.350517 2022], xyz.................
what all need to write in props.conf to see both types of events.

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The default LINE_BREAKER = ([\r\n]+) should work for those events (at least the part that is shared).

The trouble you'll have is with the TIME_FORMAT setting.  No format will match both of those events so you're better off leaving out TIME_FORMAT and letting Splunk figure out each format on its own.  It'll be a little slower, but should work.

If those events are in different files then then you should use different sourcetypes and the above won't apply.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...