Getting Data In

Importing validated JSON (RFC 4627) does not split events

timodellai
New Member

Hi,
we have a service which is showing details for he latest last 10 executed jobs in a JSON (RFC 4627) format.
I already validated that format with several JSON validators on the web.

Splunk is not splitting the events/jobs.
Do you have a solution for that challenge?

The JSON data is in the following.
The timestamp is in the field changed_at.


{
"monitored_jobs":[
{
"monitored_element_id":52,
"work_order_part_id":10,
"quantity":500,
"priority":4,
"status":{
"value":"HALTED",
"changed_at":"2019-04-10T15:46:55.734Z"
}
},
{
"monitored_element_id":9,
"work_order_part_id":9,
"quantity":500,
"priority":4,
"status":{
"value":"HALTED",
"changed_at":"2019-04-10T14:15:15.837Z"
}
},
{
"monitored_element_id":8,
"work_order_part_id":8,
"quantity":100,
"priority":4,
"status":{
"value":"COMPLETED",
"changed_at":"2019-04-10T13:47:53.763Z"
}
},
{
"monitored_element_id":7,
"work_order_part_id":7,
"quantity":50,
"priority":4,
"status":{
"value":"COMPLETED",
"changed_at":"2019-04-10T13:38:15.803Z"
}
},
{
"monitored_element_id":6,
"work_order_part_id":6,
"quantity":5,
"priority":4,
"status":{
"value":"COMPLETED",
"changed_at":"2019-04-10T13:34:26.396Z"
}
},
{
"monitored_element_id":5,
"work_order_part_id":5,
"quantity":1,
"priority":4,
"status":{
"value":"COMPLETED",
"changed_at":"2019-04-10T11:05:36.366Z"
}
},
{
"monitored_element_id":4,
"work_order_part_id":4,
"quantity":1,
"priority":4,
"status":{
"value":"HALTED",
"changed_at":"2019-04-10T10:53:29.173Z"
}
},
{
"monitored_element_id":3,
"work_order_part_id":3,
"quantity":1,
"priority":4,
"status":{
"value":"COMPLETED",
"changed_at":"2019-04-10T10:46:06.857Z"
}
},
{
"monitored_element_id":2,
"work_order_part_id":2,
"quantity":1,
"priority":4,
"status":{
"value":"HALTED",
"changed_at":"2019-04-10T10:24:22.473Z"
}
},
{
"monitored_element_id":1,
"work_order_part_id":1,
"quantity":1,
"priority":4,
"status":{
"value":"HALTED",
"changed_at":"2019-04-10T09:42:46.452Z"
}
}
],
"page":{
"size":10,
"total_elements":10,
"total_pages":1,
"number":1
}

}

When I try to import that as a file SPLUNK shows me the following:

alt text

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You're ingesting one JSON object, so Splunk reads one JSON object.

You could
- generate the data as separate objects
- turn off indexed extractions and use regex to chop the big object into small objects
- use an external preprocessor

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Your Feedback. Our Roadmap. Visit the PX Feedback Booth at .conf26

You use Splunk every day, come and help shape what's next.  Save Your Seat: Product-Focused Sessions at ...

Agentic SOC Triage: Investigating Splunk ES Notables with MCP Server and a Local LLM

The Problem: Too Many Alerts, Too Little Context Security operations teams running Splunk Enterprise Security ...

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

Watch Now Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas     Do you ever feel ...