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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...