<?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 Why is Splunk index evaluation of _time inconsistent with timestamp in log file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170109#M34353</link>
    <description>&lt;P&gt;The splunk index evaluation of _time is not consistent with what is in the log. See the two entries below. Both are from the same log. The first stamps time with 4:29:17 am, but as you can see that is not the timestamp in the event. The second, almost exactly the same, is stamped correctly at 1:15:36. Where does splunk get 4:29:17 am from and why? Most importantly, how do I prevent this from happening? It is a less than 5% occurrence but when it happens it throws off my dashboards completely and sends people into a panic.&lt;/P&gt;

&lt;P&gt;8/4/14 &lt;BR /&gt;
4:29:17.402 AM&lt;BR /&gt;&lt;BR /&gt;
20140804_01:15:17.402-1014-EOBCloseThreadLaunch_Start&lt;/P&gt;

&lt;P&gt;8/4/14 &lt;BR /&gt;
1:15:36.236 AM&lt;BR /&gt;&lt;BR /&gt;
20140804_01:15:36.236-3797-EOBCloseThreadLaunch_Start&lt;/P&gt;

&lt;P&gt;Here is the relevant search string (max because I always want the later of the two):&lt;BR /&gt;
index=daily_logs "EOBCloseThreadLaunch_Start" | stats max(_time) as launch_time by date_mday&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:15:33 GMT</pubDate>
    <dc:creator>squiggle</dc:creator>
    <dc:date>2020-09-28T17:15:33Z</dc:date>
    <item>
      <title>Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170109#M34353</link>
      <description>&lt;P&gt;The splunk index evaluation of _time is not consistent with what is in the log. See the two entries below. Both are from the same log. The first stamps time with 4:29:17 am, but as you can see that is not the timestamp in the event. The second, almost exactly the same, is stamped correctly at 1:15:36. Where does splunk get 4:29:17 am from and why? Most importantly, how do I prevent this from happening? It is a less than 5% occurrence but when it happens it throws off my dashboards completely and sends people into a panic.&lt;/P&gt;

&lt;P&gt;8/4/14 &lt;BR /&gt;
4:29:17.402 AM&lt;BR /&gt;&lt;BR /&gt;
20140804_01:15:17.402-1014-EOBCloseThreadLaunch_Start&lt;/P&gt;

&lt;P&gt;8/4/14 &lt;BR /&gt;
1:15:36.236 AM&lt;BR /&gt;&lt;BR /&gt;
20140804_01:15:36.236-3797-EOBCloseThreadLaunch_Start&lt;/P&gt;

&lt;P&gt;Here is the relevant search string (max because I always want the later of the two):&lt;BR /&gt;
index=daily_logs "EOBCloseThreadLaunch_Start" | stats max(_time) as launch_time by date_mday&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170109#M34353</guid>
      <dc:creator>squiggle</dc:creator>
      <dc:date>2020-09-28T17:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170110#M34354</link>
      <description>&lt;P&gt;Do post the values for &lt;CODE&gt;timestartpos&lt;/CODE&gt; and &lt;CODE&gt;timeendpos&lt;/CODE&gt; fields for some correctly timestamped and some incorrectly timestamped events.&lt;/P&gt;

&lt;P&gt;Also, do post the props.conf settings used for that sourcetype.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 19:12:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170110#M34354</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-04T19:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170111#M34355</link>
      <description>&lt;P&gt;Just the values under TIME on the splunkweb interface? Also, which folder for props.conf? I see 8 files under different paths in the splunk windows folder. I'm not sure which is being used... FYI it has never been edited.&lt;/P&gt;

&lt;P&gt;Incorrect (8/4):&lt;BR /&gt;
timestartpos 26&lt;BR /&gt;
timeendpos 0&lt;/P&gt;

&lt;P&gt;Correct (8/4):&lt;BR /&gt;
timestartpos 26&lt;BR /&gt;
timeendpos 0&lt;/P&gt;

&lt;P&gt;Incorrect (7/28):&lt;BR /&gt;
timestartpos 26&lt;BR /&gt;
timeendpos 0&lt;/P&gt;

&lt;P&gt;Correct (7/28):&lt;BR /&gt;
timestartpos 25&lt;BR /&gt;
timeendpos 0&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 20:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170111#M34355</guid>
      <dc:creator>squiggle</dc:creator>
      <dc:date>2014-08-04T20:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170112#M34356</link>
      <description>&lt;P&gt;I'm guessing those values are flipped, ie that the start position actually is 0 and the end position is 25 or 26. That indicates that Splunk uses the "-1014" and "-3797" in the timestamp recognition, 21 would have been correct (8 date + 9 time + 4 punctuation = 21).&lt;/P&gt;

&lt;P&gt;Which props.conf file depends on which sourcetype these events have. However, if none have been touched then that's futile.&lt;/P&gt;

&lt;P&gt;Define a new sourcetype in props.conf in either &lt;CODE&gt;etc/apps/your_app/default&lt;/CODE&gt; if you're developing an app or &lt;CODE&gt;etc/system/local&lt;/CODE&gt; if you're not like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TIME_FORMAT = %Y%m%d_%H:%M:%S.%3N
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 22
NO_BINARY_CHECK = 1
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That'll make sure Splunk uses only the timestamp and no "-1234" after that, which may be confused for a weird time zone.&lt;BR /&gt;
It'll probably be easiest for you to define that sourcetype through the data preview: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/Data/Overviewofdatapreview"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/Data/Overviewofdatapreview&lt;/A&gt;&lt;BR /&gt;
For more background about timestamp extraction read up on &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/Data/HowSplunkextractstimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 21:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170112#M34356</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-04T21:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170113#M34357</link>
      <description>&lt;P&gt;Thanks for the answer and the documentation references. I have implemented this via splunkweb and it is not working. Reviewing the documentation, it is clear that the sourcetype must be associated with the incoming data stream. However, this log come from a forwarder, so I find no way within splunkweb to make this association. Do i need to directly edit the forwarder conf file? If so, is it the same configuration you provided? Thanks for the help, and sorry for the slow reply, this work is 3rd priority and doesn't get as much time as it should.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 17:53:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170113#M34357</guid>
      <dc:creator>squiggle</dc:creator>
      <dc:date>2014-08-11T17:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170114#M34358</link>
      <description>&lt;P&gt;These props.conf setting will be there in Indexer and the sourcetype association will be done in inputs.conf file on forwarder. Just identify the monitor stanza for your log and add attribute "sourcetype = YourSourceType"&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 18:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170114#M34358</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-11T18:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170115#M34359</link>
      <description>&lt;P&gt;Thank you. I have implemented this in inputs.conf on the forwarder. Time will tell whether it is working or not. I suppose the last part of my question above should be "and once the solution is implemented for future data, how do I correct the past errors?" All those bad timestamp conversions remain in the index.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 18:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170115#M34359</guid>
      <dc:creator>squiggle</dc:creator>
      <dc:date>2014-08-12T18:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170116#M34360</link>
      <description>&lt;P&gt;There is no way to correct already indexed data unless you can delete and re-index those with new configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 19:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170116#M34360</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-12T19:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk index evaluation of _time inconsistent with timestamp in log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170117#M34361</link>
      <description>&lt;P&gt;Thanks for the above solution. As a newbie it really helped me to explore more. But I am trying to fig out how to define the props.conf if the source is ingested from the AWS SQS.&lt;/P&gt;

&lt;P&gt;Right now its indexed on index time. I have a field that is&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;created_timestamp&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and prefer the events to be indexed on that TS. &lt;/P&gt;

&lt;P&gt;my sourcetype &lt;CODE&gt;sourcetype="aws:s3:accesslogs"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;if I search like this &lt;CODE&gt;index=* sourcetype="aws:s3:accesslogs"&lt;/CODE&gt; I get 4 indexes but I want this to impact on just 1 index and set my timestamp.&lt;/P&gt;

&lt;P&gt;Please help me!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 19:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-index-evaluation-of-time-inconsistent-with/m-p/170117#M34361</guid>
      <dc:creator>jerrin</dc:creator>
      <dc:date>2020-02-28T19:36:12Z</dc:date>
    </item>
  </channel>
</rss>

