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!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Deprecation of Splunk Observability Kubernetes “Classic Navigator” UI starting ...

Access to Splunk Observability Kubernetes “Classic Navigator” UI will no longer be available starting January ...

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...