Splunk Search

Retrieve values from json file

sdhiaeddine
Explorer

Hi,

I need to filter my query for a specific field_value. The working query is as follow:

index=_index (field_value="value1" OR field_value="value4" OR field_value="value14") | .....


Now, I would like to retrieve those field values from a remote json file and pass it to search condition this way:

index=_index (field_value in listOfFieldValuesFromRemoteJson) | .....


Could you please help me make it work?

The json file : [{"field_value": "value1"},{"field_value": "value4"},{"field_value": "value14"}]

Best regards,
Dhiaeddine

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Have you already ingested the "remote" file or made it available through a KV store?

How often does the remote file change?

0 Karma

sdhiaeddine
Explorer

Hi @ITWhisperer 


Have you already ingested the "remote" file or made it available through a KV store?


Not yet, I'm still looking on how to do it


How often does the remote file change?


About once a month I update the json file

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

OK once you get the data ingested, it will be easier to use it

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...