Getting Data In

json sourcetype

amanteja
Path Finder

We are logging json formatted data in our logfiles that are fed into splunk, While sending the data we use sourcetype=log4j.

Splunk is able to correctly infer the messages and shows them in the UI as json events that are clickable. However, some records despite being fully qualified json appear as text. These events show up in the UI as clear text and many Json messages are contained in that event. Why does this happen? How can we avoid this?

Tags (3)
0 Karma
1 Solution

amanteja
Path Finder

I figured that this was because the server was truncating the log event. I changed the truncate value in etc/system/local/props.conf and it solved the problem.

View solution in original post

0 Karma

amanteja
Path Finder

I figured that this was because the server was truncating the log event. I changed the truncate value in etc/system/local/props.conf and it solved the problem.

0 Karma

chaker
Contributor

You may need to post an example of the event that extracts correctly, and the one that does not.

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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

Announcing the General Availability of Splunk Enterprise Security 8.1!

We are pleased to announce the general availability of Splunk Enterprise Security 8.1. Splunk becomes the only ...

Developer Spotlight with William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...