Getting Data In

How to break event consisting json data properly

stamstam
Explorer

Hi everyone, I have a log file of the below pattern:
2018-05-24 [POST] 8.8.8.8 GET /api {
json: data
}
And it is not breaking properly.
the event is cut in the middle of the json data.
my props.conf is as follows:
[source::/path/to/log/dir/*]
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = 1
LINE_BREAKER = (?:}) ([\r\n]+)
TRUNCATE = 0

Please help me understand this better...

somesoni2
Revered Legend

Try using this

[source::/path/to/log/dir/*]
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = 1
LINE_BREAKER = ([\r\n]+)(?=\d{4}-\d{2}-\d{2}\s\[)
TRUNCATE = 0
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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