Getting Data In

How to get the host value from INDEXED_EXTRACTIONS = json

Brett
SplunkTrust
SplunkTrust

How can I get the "host" value extracted from a JSON event with "INDEXED_EXTRACTIONS = json" into the events host field?

By default, this value ends up in the extracted_host value, and the following INGEST_EVAL does not work:

INGEST_EVAL = host:=extracted_host, extracted_host:=null() 

Labels (1)
0 Karma
1 Solution

Brett
SplunkTrust
SplunkTrust

Answered this question myself.

The "extracted_host" is actually still "host" in the _meta key, so the solution is to force Splunk to read the _meta key for its value.

INGEST_EVAL = host:=$field:host$, $field:host$:=null()

View solution in original post

0 Karma

Brett
SplunkTrust
SplunkTrust

Answered this question myself.

The "extracted_host" is actually still "host" in the _meta key, so the solution is to force Splunk to read the _meta key for its value.

INGEST_EVAL = host:=$field:host$, $field:host$:=null()
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...