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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...