Dashboards & Visualizations

To use two different search input fields in same view

shambupujar
New Member

Hi,

I currently got three charts in one of the views and use time input field as time range to be searched for. I have designed this view using simple XML. What I require is to add two more charts to same view, but the time value for this search should be different one. Hence I should be able to add another time input and another search button that picks up this time input. Any help on this appreciated.

Tags (1)
0 Karma

woodcock
Esteemed Legend

Like this:

<fieldset autoRun="true" submitButton="false">
  <input type="time" token="time_tok1" searchWhenChanged="true">
    <label>First TimePicker</label>
    <default>Last 24 hours</default>
  </input>
  <input type="time" token="time_tok2" searchWhenChanged="true">
    <label>Second TimePicker</label>
    <default>Last 24 hours</default>
  </input>
</fieldset>
<search id="first_search">
  <query>First Search Here</query>
  <earliest>$time_tok1.earliest$</earliest>
  <latest>$time_tok1.latest$</latest>
</search>
<search id="second_search">
  <query>Second Search Here</query>
  <earliest>$time_tok2.earliest$</earliest>
  <latest>$time_tok2.latest$</latest>
</search>
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...