Dashboards & Visualizations

How to return values from lookup table based on input given?

amitrinx
Explorer

I have a lookup table with three columns Endpoints, Rate, Window
I want to get the window value for a particular endpoint provided by me which i will use in my main query

The Query looks like this

sourcetype="blabla" http_url = "some endpoint"
minutesago= |inputlookup SomeFile.csv | search Endpoint = "Some endpoint" | return Window

I get an error running this query
Error in 'search' command: Unable to parse the search: Comparator '=' is missing a term on the right hand side.

Can anyone help?

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It looks like you're trying to use a subsearch without putting the subsearch inside brackets.

sourcetype="blabla" http_url = "some endpoint"
minutesago=[|inputlookup SomeFile.csv | search Endpoint = "Some endpoint" | return $Window]

Using $Window tells the return command to return only the field value rather than a key/value pair.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...