Dashboards & Visualizations

Form Dropdown Input

jvmerilla
Path Finder

Hi,

I'm trying to create a dropdown form input named "Span" where the values are "Daily", "Weekly", and "Monthly".
The idea is that when I choose one of the values, the panels under it will be populated base on their "Daily", "Weekly" or "Monthly" count.

I don't know if I made myself clear but I hope someone can help me with this.

Thank you.

Tags (3)
0 Karma

cmerriman
Super Champion

try something like this (the panel is just a run-anywhere search to show how to use the token):

 <fieldset submitButton="true">
 <input type="dropdown" token="span">
      <label>Span</label>
      <choice value="1d">Daily</choice>
      <choice value="1w">Weekly</choice>
      <choice value="1mon">Monthly</choice>
      <default>1d</default>
    </input>
</fieldset>
<row>
    <panel>
      <table>
        <search>
          <query>index=_internal earliest=-2mon@mon|timechart span=$span$ count</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...