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!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...