Splunk Enterprise

Need line breaker for below two types of events

Santosh2
Explorer

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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...