Getting Data In

Does Splunk have a good place to see Truncated Data from an input?

jaredlaney
Contributor

I have an input that is being JSON. There are some files that get truncated and others that don't.

My config in props looks like this:

[test_json]
KV_MODE = json
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = false
TRUNCATE = 999999

The file is pretty large and each json doc in the file is on one line. When I do a line count, sometimes the numbers match Splunk and sometimes they don't. Should Splunk put up a bulletin message when it truncates data??

0 Karma

maciep
Champion

I don't think Splunk tells you when data is truncated or whether any of the normal "health" apps like SoS, DMC, Fire Brigade, etc have panels with that info.

We use a simple search below in one of our own dashboards to help identify which sourcetypes are being truncated, so we can address appropriately in props.conf. The splunkd logs know how long the event was and the limit that it exceeded which caused it to be truncated.

Maybe you could find it helpful....

index=_internal sourcetype=splunkd truncating | rex "limit of (?<limit>\S+).+\>=\s+(?<length>\S+)" | stats max(length) as length max(limit) as limit count by data_source data_sourcetype | sort - count

GauravSplunxter
Explorer

This search gave me exactly what i needed. Thanks.

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...