Knowledge Management

Onboarding JSON extract

RobertEttinger8
Explorer

Hi,

I am currently onboarding some data from a different instance of Splunk using a REST API call ... The data produced is JSON and it includes, sourcetype, source, host, _time and _raw.

Is there any way I can match the details from the JSON extract to the corresponding fields in my local instance (i.e., source, sourcetype and host)?

How can I also get Splunk to automatically extract the results._raw field? Do I need to create field extraction for all fields?

the event is currently being onboarded like this:

7/18/19
4:15:00.041 AM

{ [-]
offset: 7

preview: false

result: { [-]
_raw: 2019-07-18 02:15:00.041, LONG_RUN_TX="0"

_serial: 3

_si: [ [+]
]

_sourcetype: sql_x

_subsecond: .041

_time: 2019-07-18 02:15:00.041 GMT

host: SQL01
source: sqlx_extract_log

sourcetype: sqlx_extract

}

}

Thank you.

Tags (1)
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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...