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!

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...