Dashboards & Visualizations

How can i in Custom Decorations variable?

Path Finder

Hi Guys, I create form in my splunk and also create Custom Decorations, and create two choice box time and shcool, i can use time box variable in xml, but school variable i don't understand into form. How should i do into my form? Thanks.

<form stylesheet="devices.css">

  <fieldset submitButton="true" autoRun="true">
    <input type="dropdown" token="school">
      <choice value="*">All School</choice>
      <choice value="A school">A school</choice>
      <choice value="B school">B school</choice>

    <input type="time" token="time" searchWhenChanged="true">

    <query>index=* splunk_server=*   | stats  count as value  | rangemap field=value  low=1- 10000 severe=0-0 default=low</query>
      <set token="value2">$result.value$</set>
      <set token="range2">$result.range$</set>

        <div class="small"> </div>
 <div class="custom-result-value icon-only $range2$"> $school$ </div>


Tags (2)
0 Karma


You can use $school$ to populate the value of choice Dropdown in you search queries.

Infact Dropdown gives you access to both Name and Value provided you are storing two different values.
Refer to Splunk 6.x Dashabord Examples app for details and also following documentation: http://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms

| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...