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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...