Dashboards & Visualizations

How to use lookup table in where in condition?

splunkuser320
Path Finder

I need to create a query where I need to populate a column's values from a lookup table as a default value.  Basically, replace all All in the below value with the values of the column. 

index = "XXX"  log_group IN("All")
| stats sum(event)

Thanks 

Labels (1)
Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

This is more of a search question than a dashboard question.

You can use inputlookup in a subsearch to get a list of all column values from a lookup table.

index = "XXX"  [ | inputlookup mylookup.csv | fields log_group | format ]
| stats sum(event)

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | Divide 100 by half. What do you get?

November 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...

Splunk and Fraud

Watch Now!Watch an insightful webinar where we delve into the innovative approaches to solving fraud using the ...