Dashboards & Visualizations

Display dropdown on button click

vaishnavi07
Explorer

I want to show a button and if the user click on it the it should show the dropdown. Is there any way to do this? I am using sideview utils app.


Top Processes
independent
true


index=winserver_process sourcetype="PerfmonMk:Process" NOT instance=Idle NOT instance=_Total host="adwas1701" earliest=-5m@m | eval Process=upper(instance) | table Process %_Processor_Time | dedup Process | sort - %_Processor_Time | head 10

200px
Process
Process:
4
instance="$value$"
+OR+
$value$


All*

Process

            <module name="Search" layoutPanel="panel_row3_col1" autoRun="False">
                  <param name="search"> index=winserver_process sourcetype="PerfmonMk:Process"  host="adwas1701" $Process$ | timechart span=$spantime$m avg(%_Processor_Time) by instance </param>
                 <module name="Export">
                    <param name="exportType">results</param>
                  </module> 
                 <module name="JobProgressIndicator" /> 
                 <module name="ValueSetter" >

right
$graphtype$
Time

$statistic$($column$)
$column$ for processes

connect

300px
100%


flashtimeline







Tags (1)
0 Karma

somesoni2
Revered Legend

Have a look at the 'ShowHideHeader' module of Splunk. It provides an option to show/hide a panel on click. you can place your dropdown within this panel to make them appear/hide when panel title is clicked.

 <view autoCancelInterval="90" isPersistable="true" isSticky="true" isVisible="true" objectMode="SimpleForm" onunloadCancelJobs="true" template="dashboard.html">
  <label>Auto Hide Panel</label>
  <module name="AccountBar" layoutPanel="appHeader"/>
  <module name="AppBar" layoutPanel="navigationHeader"/>
  <module name="SideviewUtils" layoutPanel="appHeader"/>
  <module name="URLLoader" layoutPanel="viewHeader" autoRun="True">
        <!--Show/hide search controls and buttons section -->
        <module name="ShowHideHeader" layoutPanel="mainSearchControls">
          <param name="label">Advanced Search Filters</param>
          <param name="mode">independent</param>
          <param name="hideChildrenOnLoad">true</param>
          <module name="Search">
            <param name="search">
              index=_internal earliest=-5m@m | stats count by sourcetype
            </param>
            <module name="Pulldown">
              <param name="name">varSourcetype</param>
              <param name="postProcess">fields sourcetype</param>
              <param name="label">SourceType:</param>
              <param name="float">left</param>
              <param name="width">150px</param>
              <param name="searchFieldsToDisplay">
                <list>
                  <param name="label">sourcetype</param>
                  <param name="value">sourcetype</param>
                </list>
              </param> 
            </module>
          </module>         
        </module>     
  </module>
</view>
0 Karma

vaishnavi07
Explorer

Hi I have added the edited my question and added the code to it.

0 Karma

somesoni2
Revered Legend

Can you provide your view xml in the post?

0 Karma

vaishnavi07
Explorer

I have another one doubt.Am placing checkbox and graph inside the showhideheader module. Only after i select values in checkbox,the graph should get loaded but in my case its loading once i click the showhide arrow. Is there any option that can be set to stop loading the graph once the arrow is clicked and let the graph load only when checkbox options are selected?

0 Karma

vaishnavi07
Explorer

ya i tried but even then its not getting loaded.

0 Karma

somesoni2
Revered Legend

Try with " false"

0 Karma

vaishnavi07
Explorer

Hi the above code works fine if i place checkboxes module and graph inside show hide header module but if i place pulldown module it just keeps loading. Even the above code is not producing output.It just keeps loading. Whats wrong in the above code

0 Karma

somesoni2
Revered Legend

Glad I can help. Please accept the answer if there are no followup ques on the same.

0 Karma

vaishnavi07
Explorer

Thanks! It works great!

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 ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...