Splunk Enterprise

Is the search range for real-time search "_time" or "indextime"?

skasagawa
Explorer

For example, a real-time search is being performed in the past 10 minutes window.

At this time, data with a timestamp of 15 minutes ago was imported.

When the search for _time, there are no hits because it does not correspond to the past 10 minutes, but when the search for indextime, there are hits.
I would like to know which is the basis of the search in real-time search.

 

Labels (2)
0 Karma
1 Solution

inventsekar
SplunkTrust
SplunkTrust

hi @skasagawa ... Pls run this search with real time.. 

index=yourindex
| eval indexTime = _indextime
| table _time, indexTime
| convert ctime(indexTime)

 the _indextime will be the timestamp at which the event was received at the indexer and the _time is the timestamp of the event.  (at times, the difference between _time and _indextime of few seconds can be accepted. if the difference is like 1 or 2 mins or more, then, you should do some troubleshooting of the host timestamp)

so most probably your events have some wrong time settings. pls let us know if you have questions.. thanks..

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !

View solution in original post

0 Karma

inventsekar
SplunkTrust
SplunkTrust

hi @skasagawa ... Pls run this search with real time.. 

index=yourindex
| eval indexTime = _indextime
| table _time, indexTime
| convert ctime(indexTime)

 the _indextime will be the timestamp at which the event was received at the indexer and the _time is the timestamp of the event.  (at times, the difference between _time and _indextime of few seconds can be accepted. if the difference is like 1 or 2 mins or more, then, you should do some troubleshooting of the host timestamp)

so most probably your events have some wrong time settings. pls let us know if you have questions.. thanks..

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Get Updates on the Splunk Community!

Harnessing Splunk’s Federated Search for Amazon S3

Managing your data effectively often means balancing performance, costs, and compliance. Splunk’s Federated ...

Infographic provides the TL;DR for the 2024 Splunk Career Impact Report

We’ve been buzzing with excitement about the recent validation of Splunk Education! The 2024 Splunk Career ...

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...