Dashboards & Visualizations

How to add a dropdown menu in my app view ?

ranjyotiprakash
Communicator

I am able to populate the dropdown menu with the required items in advanced XML but i am unable to displat the charts on the selected item . Please help ?

Tags (2)
0 Karma
1 Solution

MHibbin
Influencer

Please read the following documentatation

http://docs.splunk.com/Documentation/Splunk/latest/Developer/FormIntro

This will help you create one in simple XML you can then append ?showsource=1 to the URL of the view, this will show the advanced XML for the form.

Alternatively you should read this documentation for advanced XML

http://docs.splunk.com/Documentation/Splunk/latest/Developer/AdvancedFormSearch

Can't really help apart from this unless you show us what you are having issues with (i.e. your XML)

View solution in original post

0 Karma

ranjyotiprakash
Communicator

This is the XML code I am using for my view. The Drop down menu is getting populated but the chart is not showing the results ?

enter code here




*
False
1


dashboard


You can adjust the time range of the reports
by selecting your desired time using the picker below.




*
All


True
uname_setting
Unit Name :
test search


unit_name
unit_name



uname_setting

stringreplace


$target$




Last 60 minutes
True

            <module name="HiddenSearch" layoutPanel="panel_row2_col1" autoRun="True">
                    <param name="search">sourcetype="audit" $unit_name$ |timechart count BY Admin_Name</param>
                    <param name="useHistory">Auto</param>
                    <module name="JobProgressIndicator"/>
                    <module name="HiddenChartFormatter">
                            <param name="chartTitle">RBA Activity - Successful Logins </param>
                            <param name="chart">column</param>
                            <param name="primaryAxisTitle.text">Time</param>
                            <param name="secondaryAxisTitle.text">Successful Logins</param>
                            <param name="legend.placement">bottom</param>
                            <module name="FlashChart">
                                    <param name="width">100%</param>
                                    <param name="height">360px</param>
                                    <module name="ConvertToDrilldownSearch">
                                            <module name="ViewRedirector">
                                                    <param name="viewTarget">flashtimeline</param>
                                                    <param name="popup">true</param>
                                            </module>
                                    </module>
                            </module>
                    </module>
            </module>




Please help

0 Karma

MHibbin
Influencer

Good Job!!

0 Karma

ranjyotiprakash
Communicator

I was using HiddenSavedsearch but when I used savedSearch Module it's working fine .

0 Karma

MHibbin
Influencer

Please read the following documentatation

http://docs.splunk.com/Documentation/Splunk/latest/Developer/FormIntro

This will help you create one in simple XML you can then append ?showsource=1 to the URL of the view, this will show the advanced XML for the form.

Alternatively you should read this documentation for advanced XML

http://docs.splunk.com/Documentation/Splunk/latest/Developer/AdvancedFormSearch

Can't really help apart from this unless you show us what you are having issues with (i.e. your XML)

0 Karma

MHibbin
Influencer

If this answers your question please mark the answer as accepted (the tick next to the answer), you can even up-vote it if you like. 🙂

0 Karma

ranjyotiprakash
Communicator

Thanks for your reply !!

0 Karma

ranjyotiprakash
Communicator

can anyone show me any simple example in which dropdown is implemented ?

0 Karma
Get Updates on the Splunk Community!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...