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 :winking_face:

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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...