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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...