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
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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...