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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...