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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...