I have a log that starts each event by a new line starting with a timestamp followed by a space and pipe, like the following:
I have tried setting up props.conf with a new sourcetype, first trying BREAK_ONLY_BEFORE, then LINE_BREAKER. They both seem to work most of the time, but I am still finding chunks of several events lumped into one. I inspected the clumping events in the logs manually, expecting missing line end characters or some other red flag, but haven't found any real reason why the line break isn't working.
(Note: I have also tried this without the regex wrapped as a group)
(I have also tried this without the timestamp portion group-wrapped)
Any ideas why I'm getting these random clusters of events which should be separated?
(Using Splunk universal forwarder 6.2.3)
Give this atry
[yoursourcetype] LINE_BREAKER = ([\r\n]+)\d+-\d+-\d+T\d+:\d+:\d+\.\d+\s+\| SHOULD_LINEMERGE=true TIME_PREFIX = ^ TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%N MAX_TIMESTAMP_LOOKAHEAD = 23
Turns out both were correct. I assumed that queried events in the UI meant that indexing was complete. Looks like the events were not fully processed when I was checking on them. Apologies for the time waste.