Splunk Enterprise

props.conf no newline breaking for jsons inserted via Splunk API (not UF), unclear in documentation

wfskmoney
Path Finder

I use props.conf setting for Azure json data that I push directly into Splunk via python REST API call (not via UF).

It correctly separates events by my custom line breaker. However it still breaks jsons after \r or\n which I do not want.

The documentation mentions, line breaking settings are only honored by Forwarders. However, the setting honored LINE_BREAKER, but not the MUST_NOT_BREAK_AFTER settings

The props.conf is in an /app (not in system...)

My data is nested json events, but in the values can be several \n or \r.

[azurejson3]
CHARSET = UTF-8
SHOULD_LINEMERGE = false
KV_MODE = json
LINE_BREAKER_LOOKBEHIND = 5000
LINE_BREAKER = (\<linebreaker\>)+
TRUNCATE = 0
MUST_NOT_BREAK_AFTER = [\r\n]+
MUST_NOT_BREAK_BEFORE = [\r\n]+
MAX_EVENTS = 60000

How can the breaking be prevented?
 
Labels (2)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

The best way to test props is to have sample events in json file and upload Splunk test machine using Add data feature, while doing that you could apply props and test on fly.

 

————————————
If this helps, give a like below.
0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...