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!

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...