Dashboards & Visualizations

Is it possible to start a search while dynamic dropdown is still populating with results (assuming a default option)?

alaorath
Path Finder

I have a simple dashboard for users to view logs and filter the results based on IP address.

Problem is, the main search doesn't complete until the "Filter by IP address" input is fully populated. Since I also have a default value for the input, I was hoping there was a way in SimpleXML to force the query to start immediately (using the default) on page load.

It seems the token only gets updated once the populatingSearch from the input is finished (easily tested by refreshing the browser and watching the "populating" under the input to disappear... as soon as it does, the main search immediately changes from "Search is waiting for input.." to "Waiting for data...").

0 Karma
1 Solution

stephanefotso
Motivator

Your populating search is one search job, and your main search is annother search job, but since the main search is using a token from your dropdown menu to accomplish the search, it will wait until the first search job is completed. That is why your main search will not start, until the first search job is completed. There is no thing to do, your main search will always wait until the dropdown is populated before waiting for data, and then display resulsts.
Thanks

SGF

View solution in original post

0 Karma

stephanefotso
Motivator

Your populating search is one search job, and your main search is annother search job, but since the main search is using a token from your dropdown menu to accomplish the search, it will wait until the first search job is completed. That is why your main search will not start, until the first search job is completed. There is no thing to do, your main search will always wait until the dropdown is populated before waiting for data, and then display resulsts.
Thanks

SGF
0 Karma

alaorath
Path Finder

That's about what I figured... but I was hoping with a default value specified it would be able to start the main search before the dropdown was populated.

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, ...