Getting Data In

Is it possible to use the "latest" time modifier as a field for calculations?

HeinzWaescher
Motivator

Hi,

I would like to use the "latest" time modifier that is defined by the the timerange picker or in my base search as a value for calculations. Is there a field that includes this timestamp and can be used?

Thanks in advance
Heinz

0 Karma
1 Solution

elliotproebstel
Champion

You can get that value by using the addinfo command. Use | addinfo and your events will all have four new fields:

info_min_time: corresponds to the "earliest" time in your timepicker
info_max_time: corresponds to the "latest" time in your timepicker <-- the one you want
info_sid: the ID of the search you ran
info_search_time: the time you ran the search

View solution in original post

elliotproebstel
Champion

You can get that value by using the addinfo command. Use | addinfo and your events will all have four new fields:

info_min_time: corresponds to the "earliest" time in your timepicker
info_max_time: corresponds to the "latest" time in your timepicker <-- the one you want
info_sid: the ID of the search you ran
info_search_time: the time you ran the search

HeinzWaescher
Motivator

this works fine, thanks 🙂

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi HeinzWaescher,
you can use it in dashboard panels as token: e.g. if your time picher token is called "Time", you have $Time.latest$
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...