Dashboards & Visualizations

How to display my dashboard even when an optional drilldown parameter is not present?

etam
New Member

Hi,

I'm trying to overload an existing dashboard, so that it could generate regardless if the drilldown parameter exists or not.

I want the dashboard to work even if I didn't pass $p_Time_Ago$ in the URL. Currently, it will show as "Search is waiting for input...", if the parameter value is not present.

[|stats c | addinfo | eval earliest=info_min_time-$p_Time_Ago$| eval latest=info_max_time-$p_Time_Ago$ | return earliest latest]  

Thanks,
Eva

0 Karma

jagadeeshm
Contributor

If you are using Splunk 6.5, this is now supported natively in Simple XML.
Example:

<form>
    <init>
      <set token="p_Time_Ago">INITIAL_VALUE</set>
   </init>
 ...
 </form>

Reference # Set tokens on page load

0 Karma

etam
New Member

Thanks! I'm on 6.4.1.

Is there any other way to get around it for older version?

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...