Dashboards & Visualizations

Json logs not parsing properly.

mahesh27
Communicator

Hi All, We have a json logs where few logs are not parsing properly. When i check internal logs its shows that truncate value exceed the default 10000 bytes, so i tried increasing truncate value to 40000, but still logs are not parsing correctly.

the logs length is around  26000.

props used:

[app:json:logs]
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
CHARSET=UTF-8
TIMEPREFIX=\{\"timestamp"\:\"
KV_MODE=json
TRUNCATE=40000

 

 

0 Karma

nmohammed
Builder

Try adding a limits.conf with the following

[kv]
maxchars = 40000
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @mahesh27 ,

try to add INDEXED_EXTRACTIONS = JSON to your props.conf

Ciao.

Giuseppe

0 Karma

mahesh27
Communicator

Hi @gcusello, sorry we have a limitation not to use that is there any other way 

0 Karma

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