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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...