Dashboards & Visualizations

How to change search fields inside dashboard based upon other chosen fields?

mgaler
New Member

trying to setup an interactive dashboard that takes user inputs and runs various searches.

First we select data type in $field1
Then enter text for that data in $field2 (the search string)
Then we select a radio button that tells us what type of data to look for ($field3) (the index)

Then run a simple search like

index=$field3$ $field1$=$field2$

The issue is that I need the value of $field1$ to change based on the value of $field3$, e.g. if $field3="pop" I want to set $field1 = "user", but if $field3="imp" I want to set $field1 = "auth"

0 Karma

jimodonald
Contributor

I done similar things in the past based on post-process searches. The user would start by selecting the index they want to search from a list (your "field3"). Then a search is executed for the values that can be "field1".

Essentially, you are going from broadest category (the index) to more specific values (such as source type).

If your indexes and source type (or whatever "field1" represents) is static, then you should be able to do something similar with a lookup table.

0 Karma
Get Updates on the Splunk Community!

Community Feedback

We Want to Hear from You! Share Your Feedback on the Splunk Community   The Splunk Community is built for you ...

Manual Instrumentation with Splunk Observability Cloud: Implementing the ...

In our observability journey so far, we've built comprehensive instrumentation for our Worms in Space ...

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...