Dashboards & Visualizations

How to extract the data depending on the dropdown menu and autopopulate the search charts

theouhuios
Motivator

I am trying to autopopulate the data from a drop down box in the searchstring according to changes done in the dropdown menu. I might be doing a mistake in understand what 'value' option is and on how to define it to search according to the changes in the search. Please see the code below. Any help would be great.

 <fieldset autoRun="true">
<input type="dropdown" token="option" searchWhenChanged="true">
  <label>Search By: </label>
  <default>Architecture and Engineering</default>
  <choice value="record.groupArea">Architecture and Engineering</choice>
  <choice value="record.groupArea">Channel Support</choice>
  <choice value="record.groupArea">Customer Connection Solutions</choice>
  <choice value="record.groupArea">Customer Relationship Management</choice>
  <choice value="record.groupArea">Data and amp Information Strategies</choice>
  <choice value="record.groupArea">General and Financial Services</choice>
  <choice value="   record.groupArea">  Not Defined</choice>
  <choice value="record.groupArea">P and amp;C Claims Systems</choice>
  <choice value="record.groupArea">Product Solutions</choice>
  <choice value="record.groupArea"> Systems Projects</choice>
  <choice value="record.groupArea">Systems Technology</choice>
  <choice value="record.groupArea">Workforce and Department Services</choice>
</input>
<!-- Allow the user to select a timerange -->


<input type="time">
  <label>Time Range: </label>
  <default>Today</default>
</input>




sourcetype= "incident" earliest = -1d@d | dedup record.incidentId | search record.eventType="update" record.groupArea=$record.groupArea$ | timechart span=1hr count by record.eventType usenull=f
24 Hour History
Time
column
gaps
default
false
right

20
true
all

-theou

Tags (1)

theouhuios
Motivator

Got it. Was doing a mistake in understanding what token meant. Solved.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...