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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...