Splunk submit button (submitButton) does not refresh dashboard if no inputs are changed

2.4k Views Asked by At

I have a dashboard with a submit button (submitButton). The search isn't run until the button is pressed which is exactly what I want (the search takes a long time). I don't want the search starting as the user changes the other dropdowns (time), environment (Prod vs. QA), etc.

HOWEVER, sometimes it would be nice to hit the submit button and perform the search again without changing any of the other fields (time, environment, etc.). In this case the submit button does nothing! I can tell the underlying data has changed via searches, but the dashboard is not updated. Simply changing any of the fields, doing a search, and then changing them back and searching again solves the problem, but surely the submit button should just work w/o this workaround?

Thanks

4

There are 4 best solutions below

2
On BEST ANSWER

Each panel in the dashboard should (automatically) have a refresh button you can click to refresh the display without changing inputs.

0
On

Unfortunately, this is intended behavior.

I also wish that the submit button would rerun dashboard searches. I opened a post on Splunk ideas about this issue: https://ideas.splunk.com/ideas/EID-I-739 If you have a splunk.com account, you can vote for this idea.

0
On

If "nothing" has changed, then Submit is supposed to "do nothing".

If you want to refresh the page with all the parameters as set, you should be able to click the URL bar and press return (so long as there are no hidden tokens, they'll all get set in the query portion of the URL).

1
On

I've browsed through Internet and found some solution that with some modifications worked for me fine

<form>
..
     <html>
       <style>
         div.fieldset.dashboard-form-globalfieldset div.dashboard-element.html.dashboard-element-html {
        display: inline-block;
           }
       </style>
       <a href="<<dasboardID>>?form.cust_str=$cust_str$&amp;form.time.earliest=$time.earliest$&amp;form.time.latest=$time.latest$&amp;form.env=$env$&amp;form.proj=$proj$" class="btn btn-primary">Refresh</a>
     </html>
...
<form/>

so basiclu im refreshing page with all of its attributes and passing attributes values form current ones chosen using tokens. splunk code didn't like & so replaced it with & and it worked fine. <> - can be found in your splunk page address.