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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...