<?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: How can I know what is wrong when there is a big difference in _time and index time? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408172#M7063</link>
    <description>&lt;P&gt;how the timestamp is being extracted (_time doesn't seem to match the one in the raw data).&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 20:42:08 GMT</pubDate>
    <dc:creator>muralikoppula</dc:creator>
    <dc:date>2018-08-14T20:42:08Z</dc:date>
    <item>
      <title>How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408168#M7059</link>
      <description>&lt;P&gt;How can I know what is wrong when there is a big difference in _time and index time &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;173,518 events  (2/20/13 5:27:50.000 PM to 1/1/18 12:00:00.000 AM)  No Event Sampling   Job Fast Mode
Events
Statistics (173,518)
Visualization
100 Per Page
Format
Preview
Prev12345678...Next
_time   idxtime offset  _raw
2015-12-17 07:37:56.000 2018-08-14 04:54:59 83884623    timelag=423 messageId=1450337876eb4ae5bdd1fc7383fe8685 topicName=KistaTopicNC3 retryCount=0 [LogLevel=INFO] -- 2018/08/14 04:54:30 INFO Thread-5 com.apple.keystone.messaging.client.v2.impl.kafka.ReceivedMessagesProcessor - "Kafka consumer received message" timelag=353 messageId=0a9ec5de23bb4f32860895ae5474ea3e topicName=KistaTopicNC3 retryCount=0 [LogLevel=INFO] -- 2018/08/14 04:54:30 INFO Thread-5 com.apple.keystone.messaging.client.v2.impl.kafka.ReceivedMessagesProcessor - "Kafka consumer received message" timelag=257 messageId=228fd880217142c6806367ea28264c24 topicName=KistaTopicNC3 retryCount=0 [LogLevel=INFO] -- 2018/08/14 04:54:30 INFO Thread-5 com.apple.keystone.messaging.client.v2.impl.kafka.ReceivedMessagesProcessor - "Kafka consumer received message" timelag=162 messageId=5383df5980ba4f4882cd464c31ef64aa topicName=KistaTopicNC3 retryCount=0 [LogLevel=INFO] -- 2018/08/14 04:54:30 INFO Thread-5 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408168#M7059</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2018-08-14T17:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408169#M7060</link>
      <description>&lt;P&gt;read this answer in detail&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/678655/how-to-trigger-alerts-when-indextime-time-1.html#comment-678899"&gt;https://answers.splunk.com/answers/678655/how-to-trigger-alerts-when-indextime-time-1.html#comment-678899&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408169#M7060</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-08-14T18:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408170#M7061</link>
      <description>&lt;P&gt;Check the various queue sizes if there is any high spikes on the queue sizes.&lt;BR /&gt;
     index=_internal sourcetype=splunkd source=*metrics.log group=queue &lt;BR /&gt;
     | timechart avg(current_size) by name&lt;/P&gt;

&lt;P&gt;You can add host=yourUFName to see queue sizes on UF and host=Indexer (add more OR condition for all indexers) to see queue sizes on Indexers. You may need to adjust queue sizes based on results from there. &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/38218/universal-forwarder-parsingqueue-kb-size.html" target="_blank"&gt;https://answers.splunk.com/answers/38218/universal-forwarder-parsingqueue-kb-size.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:51:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408170#M7061</guid>
      <dc:creator>muralikoppula</dc:creator>
      <dc:date>2020-09-29T20:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408171#M7062</link>
      <description>&lt;P&gt;how is queue size related to _time&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408171#M7062</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2018-08-14T19:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408172#M7063</link>
      <description>&lt;P&gt;how the timestamp is being extracted (_time doesn't seem to match the one in the raw data).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:42:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408172#M7063</guid>
      <dc:creator>muralikoppula</dc:creator>
      <dc:date>2018-08-14T20:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408173#M7064</link>
      <description>&lt;P&gt;how to find it ? ,I don't know how it was extracted ?.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408173#M7064</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2018-08-14T20:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408174#M7065</link>
      <description>&lt;P&gt;@rajneeshc1981 &lt;/P&gt;

&lt;P&gt;can you confirm that &lt;CODE&gt;_time=2015-12-17 07:37:56.000&lt;/CODE&gt; and &lt;CODE&gt;_indextime=2018-08-14 04:54:59&lt;/CODE&gt; and that there is a multi year difference between your timestamps?&lt;/P&gt;

&lt;P&gt;can you post the config in your &lt;CODE&gt;props.conf&lt;/CODE&gt; file for this &lt;CODE&gt;sourcetype&lt;/CODE&gt;? it might also help to get a copy of the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; config for this sourcetype as well.  &lt;/P&gt;

&lt;P&gt;can you post a sample of the original raw source data before being sent to splunk and a sample of the &lt;CODE&gt;_raw&lt;/CODE&gt; after being received by splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 21:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408174#M7065</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2018-08-14T21:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know what is wrong when there is a big difference in _time and index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408175#M7066</link>
      <description>&lt;P&gt;This could be due to indexer lag or bad timestamping. To test this, you can use this query. If it's linear then you most likely have a lag issue, if its flat then you most likely have a timestamping issue &lt;/P&gt;

&lt;P&gt;You could also add a &lt;CODE&gt;by source&lt;/CODE&gt; and specify a host if you wanted to test your lag theory. Typically all the sources will have lag if the UF isn't keeping up&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... sourcetype=...
| eval indextime=(_indextime, "%s")
| eval time=(_time, "%s")
| eval diff=time-indextime
| timechart span=1m max(diff) AS diff
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Aug 2018 21:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-know-what-is-wrong-when-there-is-a-big-difference-in/m-p/408175#M7066</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-08-14T21:32:22Z</dc:date>
    </item>
  </channel>
</rss>

