Splunk Search

Suitable Sourcetype for uploading a file in json format

dinaabdelhakam
Path Finder

Hello, I am parsing a file in JSON format to splunk entrprise but the sourcetype is not selected automatically, when I chose JSON sourcetype manually the events doesn't parsed correctly, In addition to I put the file in a JSON validator and the result was that the JSON format is valid so what is the problem then ?

Tags (1)
0 Karma

harsmarvania57
Ultra Champion

Hi,

Can you please let us know how are you ingesting file into Splunk? If Universal Forwarder is sending JSON logfile to Splunk Indexer then try to put below configuration on Universal Forwarder and restart splunk on UF.

props.conf

[yoursourcetype]
INDEXED_EXTRACTIONS = JSON
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...