Getting Data In

uploading json data file does not get parsed properly

sawgata12345
Path Finder

Hi I tried to upload file in json format but after uploading whole json is showing as single entry and no event getting gerenated from it. What is the correct JSON format for splunk? Is there any special format of JSON that Splunk understands?

0 Karma
1 Solution

sawgata12345
Path Finder

Hi,
I found the answer to my question.
The json file should be in below format
{
"key":"value",
"key2":"value2"
}
{
"key":"value",
"key2":"value2"
}

Just upload the file it will get indexed and search queries also work nicely

View solution in original post

sawgata12345
Path Finder

Hi,
I found the answer to my question.
The json file should be in below format
{
"key":"value",
"key2":"value2"
}
{
"key":"value",
"key2":"value2"
}

Just upload the file it will get indexed and search queries also work nicely

jbarlow_splunk
Splunk Employee
Splunk Employee

no special format. just json

you may need to do INDEXED_EXTRACTIONS = json in props.conf..
per
http://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Extractfieldsfromfileswithstructureddat...

there is also search time KV_MODE=json

(but do not set both KV_MODE and INDEXED_EXTRACTIONS ...its an either or,,, will get duplicate fields if both set)
https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What are your props.conf settings for that sourcetype?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...