Splunk Search

What is the difference between lastTime and recentTime in a metadata search?

sfmandmdev
Path Finder

What is the difference between lastTime and recentTime in a metadata search?

Tags (1)
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

The recentTime field represents the most recent timestamp seen for the given source, sourcetype or host, while lastTime represents the latest time ever seen for it.

View solution in original post

sfmandmdev
Path Finder

Thanks Stephen. So just to confirm, recentTime is to most recent event time as lastTime is to most recent indexed time. Is that correct?

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

The second half of your analogy doesn't sound quite right, as lastTime is the latest timestamp in the index.

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

The recentTime field represents the most recent timestamp seen for the given source, sourcetype or host, while lastTime represents the latest time ever seen for it.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...