<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why _time is later than _indextime ?? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Why-time-is-later-than-indextime/m-p/315323#M5390</link>
    <description>&lt;P&gt;try to see the latency,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; * | eval time=_time | eval itime=_indextime | eval latency=(itime  - time) | stats count, avg(latency), min(latency), max(latency) by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;Negative latencies&lt;/CODE&gt;, if observed, usually indicate a &lt;STRONG&gt;system clock difference between the source server (log-source) and the Splunk-server(indexer).&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This figure will of course be inaccurate when Splunk indexes historic logs.- just to let you know&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 02:39:11 GMT</pubDate>
    <dc:creator>splunker12er</dc:creator>
    <dc:date>2018-04-06T02:39:11Z</dc:date>
    <item>
      <title>Why _time is later than _indextime ??</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-time-is-later-than-indextime/m-p/315322#M5389</link>
      <description>&lt;P&gt;This data occurs in real time, and I receive it with bundles. &lt;/P&gt;

&lt;P&gt;Each source send about 1000~2000 data for average in a day.&lt;/P&gt;

&lt;P&gt;I want to compare _indextime and _time(_time is same as the time at the event log's has) &lt;/P&gt;

&lt;P&gt;I used query like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=idx_A source="B.D2180323.F0015358*"
| eval indextime=_indextime
| stats values(source) by indextime _time
| eval time_gap=indextime - _time, indextime=strftime(indextime, "%y/%m/%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I guessed the indextime will be always later than _time, because all events will indexing after the events get over.&lt;/P&gt;

&lt;P&gt;Most of results are came out as I gussed, but some events was wiered.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;indextime              _time         Time_gap
2018-03-22 1:05 2018-03-22 23:19    -1334
2018-03-22 1:05 2018-03-22 23:25    -1340
2018-03-22 1:05 2018-03-22 23:34    -1349
2018-03-22 1:05 2018-03-22 23:56    -1371
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why some indextime is later than _time? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-time-is-later-than-indextime/m-p/315322#M5389</guid>
      <dc:creator>stardust927</dc:creator>
      <dc:date>2020-09-29T18:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why _time is later than _indextime ??</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-time-is-later-than-indextime/m-p/315323#M5390</link>
      <description>&lt;P&gt;try to see the latency,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; * | eval time=_time | eval itime=_indextime | eval latency=(itime  - time) | stats count, avg(latency), min(latency), max(latency) by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;Negative latencies&lt;/CODE&gt;, if observed, usually indicate a &lt;STRONG&gt;system clock difference between the source server (log-source) and the Splunk-server(indexer).&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This figure will of course be inaccurate when Splunk indexes historic logs.- just to let you know&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 02:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-time-is-later-than-indextime/m-p/315323#M5390</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-06T02:39:11Z</dc:date>
    </item>
  </channel>
</rss>

