Splunk Enterprise

help on a post process search linked to a time input token

jip31
Motivator

hello

 

In my dashboard I use 2 different token time 

Both of these token time are linked to the same post process search

Instead of creating the same process search 2 times, I would like to use only post process search linked to the 2 different token time

Is it possible please?

 

 <input type="time" token="timesource" searchWhenChanged="true">
      <label>Période source</label>
      <default>
        <earliest>1638313200</earliest>
        <latest>1640991600</latest>
      </default>
    </input>
    <input type="time" token="timetarget" searchWhenChanged="true">
      <label>Période cible</label>
      <default>
        <earliest>@mon</earliest>
        <latest>now</latest>
      </default>
    </input>
 <search id="hang">
    <query>index=toto sourcetype=tutu
</query>
    <earliest>$timesource.earliest$</earliest>
    <latest>$timesource.latest$</latest>
  </search>
  <search id="hang2">
    <query>index=toto sourcetype=tutu
</query>
    <earliest>$timetarget.earliest$</earliest>
    <latest>$timetarget.latest$</latest>
  </search>

 

I  

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...