How to Add Multiselect Input option and filter to Splunk Dashboard
The main purpose of adding inputs in Splunk dashboard is to make dashboards dynamic. There are few easy steps to add multiselect input option to Splunk dashboard. You can select multiple options by Multiselect input option.
Step 1:
Open a dashboard which you want to make dynamic. You can see the Edit option on top right corner of the dashboard. Click on the Edit option.
Step 2:
After clicking Edit option you can see Add Input option in the dashboard , click on that. Then click on Multiselect.
Step 3:
Now edit the Multiselect option . There you have to give a Label, which will be shown on the dashboard. Then click the check box beside Search on Change . If you don’t click this then it will not effect the dashboard. So every time you have to click the check box. Give a Token name by which value will pass. Here we have a given a token name as multiselect_token .
Step 4:
You have to write the Token Options . Give the Token Value Prefix , Token Value Suffix and Delimiter . You can easily do this by seeing Preview Option. In the Token Value Prefix you have to mention a field name for which you want to populate the multiselect option.
There are two ways to put the values of the field. One is Static Options and another is Dynamic Options.
Step 5: Static Options
In the static options you have to add the names of values of a field as you want to see to the dashboard and against those names you have to specify the values. You have to write all the names and values manually. At last click on Apply button.
Step 6 :
You have to pass the token inside the panels which you want to make dependent upon the token . Click on Edit Search of that panel. Token name should be enclosed by “$” sign. Here you don’t need to specify field name as we have passed the field name in the Token Options .Click on the Apply button.
Step 7:
After making changes in the dashboard click on Save button to save all the changes and refresh the dashboard tab once.
Step 8:
Finally Multiselect Input option is added in the dashboard. Select any method names from the multiselect list . Depending upon the values dashboard will populate. You can select multiple options from the list. Here we have selected “head” and “delete” as method field values.
Step 9: Dynamic Options
Follow the steps from 1 to 4 as it is. In the dynamic options you have to enter a Search String from which we can get all the names of a particular field. Select the time as All time to get all the values of that field. Also you have to give Field For Label for which field you want to populate the multiselect input option. You have to give the Field For Value for which field you want to populate the multiselect input option . For selecting all the values of that particular field we have given All in the static options. All the options in multiselect list will be automatically generated by the Search String. Click on Apply button.
Step 10:
You have to pass the token inside the panels which you want to make dependent upon the token. Click on Edit Search of that panel. Token name should be enclosed by “$” sign. Here you don’t need to specify field name as we have passed the field name in the Token Options .Click on the Apply button.
Step 11:
After making changes in the dashboard click on Save button to save all the changes and refresh the dashboard tab once.
Step 12:
Finally Multiselect Input option is added in the dashboard. Select any method names from the multiselect list . Depending upon the values dashboard will populate. You can select multiple options from the list. Here we have selected “DELETE” , “HEAD” and “POST” as method field values.
Hope this has helped you in achieving the below requirement without fail:
How to Add Multiselect Input option to Splunk Dashboard
Happy Splunking !!
This was a great tutorial. Very clear. Thank you!
Many thanks Ricardo,plz subscribe to this blog and share this with others also
HI ,
i am having a query here
my multi select is static and i want to show the field name in my table rather field values , how can we achieve this?
In the static , you are already hardcoding, You need to convert this in “dynamic” , if it is dynamic , we can do something !! Kindly confirm whether you can do the dynamic or not !!
no we cant do it dynamic, we have 4 fields to select and i need to show the field name in the search dashboard
to add to this , i am able to get one field name but i have multiple fields selected and need to show all