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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...