Dashboards & Visualizations

What is the difference between latest_day and 1 day_ before?

hmohta
Path Finder

Hello

I am a bit unclear from the readings the meaning of  'latest_day and 1 day_ before'. I have attached a screen shot where I am comparing a particular event that occurred over 7 days. 

Screenshot (243).png

Now if I want to compare say   'latest_day and 1 day_ before'. : is latest like yesterday and 1day_ before is the 4th October? I am confused. My query: 
index="AB" earliest=-8d@d latest=@d
| search status="OTP_REQUIRED"
| timechart span=1h count
| timewrap d
|  fields _time latest_day, 1day_before ( when I want to compare days)

Thankyou

Labels (1)
0 Karma

hmohta
Path Finder

Thankyou so much!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @hmohta,

good for you, see next time!

Please accept one answer for the other people of Community

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated by all the Contributors 😉

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @hmohta,

as @johnhuang said:

  •  latest_day is tha last full day of the time period of your search, in this case yesterday,
  • 1day_before is the previous day than yesterday.

For more infos see documentation about timewrap command at https://docs.splunk.com/Documentation/Splunk/9.0.1/SearchReference/Timewrap 

Ciao.

Giuseppe

johnhuang
Motivator

The latest_day correspond to the latest event in your search which is yesterday.

Get Updates on the Splunk Community!

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

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

Splunk Education Goes to Washington | Splunk GovSummit 2024

If you’re in the Washington, D.C. area, this is your opportunity to take your career and Splunk skills to the ...