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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...