Splunk Search

How to get earliest time and latest time token in JOB

mishaaaaaaaaaa
Explorer

Hi splunk comuniti!

I have a job in splunk. In "Edit Search" i have two fields - Earliest time and Latest time. How can i get tokens of this fields to use them in search query?

Tags (1)
0 Karma
1 Solution

lakshman239
Influencer

Pls try $time_token.earliest$ and $time_token.latest$ where time_token is the name of your token

View solution in original post

0 Karma

lakshman239
Influencer

Pls try $time_token.earliest$ and $time_token.latest$ where time_token is the name of your token

0 Karma

mishaaaaaaaaaa
Explorer

@lakshman239 but i don't know the name of time_token in job
I create a scheduled job and in "Edit search" tab i have two text input which is Earliest time and Latest time, and i don't know their tokens

0 Karma

mishaaaaaaaaaa
Explorer

@lakshman239 i found how to do this, the tokens name are dispatch.latest_time and dispatch.earliest_time

0 Karma

lakshman239
Influencer

Glad it worked. Pls download the Splunk dashboard example app, if you haven't already, as it has tons of good examples like the one which you are after.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...