Splunk Search

Check box for base search

prajwal_94
Explorer

Hi guys,

For a dashboard panel, I am running base search and hoping to have a checkbox that returns the timechart data while selecting the check box. Not sure what changes needs to be done to the following query- (also I guess the tag placement for row, panel & chart needs to be aligned)


<search id="base_search">
<query>index=magic host="abc*" $check1$</query>
<earliest>-120m@m</earliest>
<latest>now</latest>
</search>
<fieldset submitButton="false">
<input type="checkbox" token="check1" searchWhenChanged="true">
<label>box</label>
<choice value="*">All</choice>
<search base="base_search">
<query>| search "abracadabra" | timechart span=5m count
</query>
</search>
<fieldForLabel>check1</fieldForLabel>
<fieldForValue>check1</fieldForValue>
</input>
</fieldset>

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The input search won't run until the token in the base search is defined - which won't happen until the input search runs.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...