Getting Data In

How to onboard json file data to Splunk?

karthi2809
Builder

Hi ,

Thanks in Advance

I am trying to onboard json file data to splunk .But i am not forwarding all the data from json file.

 

My json file format

{
"aaa": {
"modified_files": [
"a/D:\\\\splunk\\\\Repos\\\\/.git/HEAD",
"a/D:\\\\splunk\\\\Repos\\\\/.git/config",
"a/D:\\\\splunk\\\\Repos\\\\/.git/index",
"a/D:\\\\splunk\\\\Repos\\\\/.git/logs/HEAD"]

},

"bbb": {
"modified_files": [

"b/D:\\\\splunk\\\\Repos\\\\/.git/HEAD",
"b/D:\\\\splunk\\\\Repos\\\\/.git/config",
"b/D:\\\\splunk\\\\Repos\\\\/.git/index",
"b/D:\\\\splunk\\\\Repos\\\\/.git/logs/HEAD"


}
}

I am getting result as like this

{
"aaa": {
"modified_files": [
"a/D:\\\\splunk\\\\Repos\\\\/.git/HEAD",
"a/D:\\\\splunk\\\\Repos\\\\/.git/config",
"a/D:\\\\splunk\\\\Repos\\\\/.git/index",
"a/D:\\\\splunk\\\\Repos\\\\/.git/logs/HEAD"

Labels (2)
0 Karma
1 Solution

SinghK
Builder

Create a normal file monitor input and choose source type as json_no_timestamp

View solution in original post

0 Karma

SinghK
Builder

Create a normal file monitor input and choose source type as json_no_timestamp

0 Karma

karthi2809
Builder

Keep on monitoring the file in daily basis 

0 Karma

SinghK
Builder

Check the link I have posted below.

0 Karma

karthi2809
Builder

But i need to monitor json file

0 Karma

SinghK
Builder
0 Karma

SinghK
Builder

File input does the same thing , it monitors file.

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 ...