<?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: Does Splunk log falling back to automatic timestamp extraction? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468557#M80655</link>
    <description>&lt;P&gt;I'm not aware of an explicit log that says fallback parsing was used.  It's just part of the normal processing of timestamps.&lt;BR /&gt;
Be sure to submit &lt;EM&gt;feedback&lt;/EM&gt; on the docs page, rather than a comment.  Feedback is sent to the Docs team and is more likely to receive a response.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 13:36:28 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-11-07T13:36:28Z</dc:date>
    <item>
      <title>Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468552#M80650</link>
      <description>&lt;P&gt;&lt;EM&gt;After&lt;/EM&gt; Splunk (I'm using 7.3.0) has indexed an event, is there any way to tell whether:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Splunk successfully used the &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; et al configuration settings in &lt;CODE&gt;props.conf&lt;/CODE&gt; to extract the timestamp, or&lt;/LI&gt;
&lt;LI&gt;Splunk tried but failed to extract the timestamp using the configuration settings, and fell back to using its built-in automatic timestamp extraction&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In either case, the timestamp in the indexed event is correct, so there's no way to tell from the indexed event itself.&lt;/P&gt;

&lt;P&gt;I have read, among other Splunk documentation, the text following the heading "&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Data/HowSplunkextractstimestamps#How_Splunk_software_assigns_timestamps"&gt;How Splunk software assigns timestamps&lt;/A&gt;".&lt;/P&gt;

&lt;P&gt;I note that this documentation does &lt;EM&gt;not&lt;/EM&gt; specifically cover the situation that I am describing: the documentation does not explain that Splunk falls back on automatic timestamp extraction after attempting to extract a timestamp using &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;. Rather, the documentation states:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;If no &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; was configured for the data, Splunk software attempts to automatically identify a time or date in the event itself&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;"If no &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; was configured": in an example of the situation that I am describing, I &lt;EM&gt;had&lt;/EM&gt; configured &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;, but I had &lt;EM&gt;failed&lt;/EM&gt; to configure the related &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;. Perhaps I'm just nitpicking, splitting hairs. Moving on...&lt;/P&gt;

&lt;P&gt;From the Splunk docs topic "&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Data/Configuretimestamprecognition"&gt;Configure timestamp recognition&lt;/A&gt;", with my additional &lt;STRONG&gt;highlighting&lt;/STRONG&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;If you don't set &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; but you do set &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;, the timestamp must appear at the very start of each event; otherwise, Splunk software will not be able to process the formatting instructions, and &lt;STRONG&gt;every event will contain a warning about the inability to use strptime&lt;/STRONG&gt;. (It's possible that you will still end up with a valid timestamp, based on how Splunk software attempts to recover from the problem.)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In practice, to see those strptime warnings, I use the "upload" option in Splunk Web: the "preview" shows those warnings.&lt;/P&gt;

&lt;P&gt;However, after indexing, I can't see those warnings. The following search finds no results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal strptime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then again, rereading that documentation topic:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;every event will contain a warning about the inability to use strptime&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The event "will &lt;EM&gt;contain&lt;/EM&gt; a warning"? &lt;EM&gt;Contain&lt;/EM&gt;? As in, the indexed event will &lt;EM&gt;contain a field with that warning&lt;/EM&gt;? I don't see any such warning in the indexed events.&lt;/P&gt;

&lt;P&gt;What am I missing? How do I see those warnings after indexing? For example, do I need to configure the logging level of a particular log channel to get Splunk to log such warnings? Or is there a field with this warning in the indexed events that I'm somehow overlooking?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 02:23:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468552#M80650</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-10-31T02:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468553#M80651</link>
      <description>&lt;P&gt;I suggest you submit feedback on that documentation page as it's misleading.  If &lt;CODE&gt;strptime&lt;/CODE&gt; fails a "Failed to parse timestamp" warning message will be written to splunkd.log, but will NOT be contained in the event itself.  Unfortunately, there is no way to tie the log message to the specific event that triggered it, just the sourcetype.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 02:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468553#M80651</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-31T02:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468554#M80652</link>
      <description>&lt;P&gt;Thanks for your answer!&lt;/P&gt;

&lt;P&gt;Re:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;I suggest you submit feedback on that documentation page as it's misleading.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Will do.&lt;/P&gt;

&lt;P&gt;Re:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;If &lt;CODE&gt;strptime&lt;/CODE&gt; fails&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Thank you! Yes, the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal "Failed to parse timestamp"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;finds a few instances of that warning. I took the documentation too literally when it referred to a "warning about the inability to use strptime". I was looking for a warning that contained the string "strptime".&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;However, while interesting, those instances don't cover the specific situation I describe in my question:&lt;/STRONG&gt; where Splunk &lt;EM&gt;successfully&lt;/EM&gt; extracts the timestamp, but only after &lt;EM&gt;failing&lt;/EM&gt; to extract the timestamp using &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;. Does that situation get logged?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 03:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468554#M80652</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-10-31T03:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468555#M80653</link>
      <description>&lt;P&gt;For example data and configuration settings matching this situation, see my recent question "&lt;A href="https://answers.splunk.com/answers/779206"&gt;Configured vs automatic extraction for timestamps in ISO 8601 extended format?&lt;/A&gt;", but imagine that I hadn't specified &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;In fact, that is exactly what I am embarrassed to confess I was doing: I was specifying &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; without &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;. And I thought that this was working, because Splunk extracted the timestamps correctly. However, the "Could not use strptime to parse timestamp" warnings that I saw when previewing data before uploading it via Splunk Web made me revisit the documentation, and realize I was wrong. What was actually happening: my &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; configuration (at that point, sans &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;) was failing, and Splunk was falling back on its automatic timestamp extraction, which was succeeding. I want to know about this situation, without using the "upload" option in Splunk Web! I'm grateful for the successful fallback, but I want to know about it.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 03:32:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468555#M80653</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-10-31T03:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468556#M80654</link>
      <description>&lt;P&gt;Any more thoughts on this? I'd like to use the Splunk docs comment that you recommended I submit as an excuse to suggest an enhancement (I don't have a Splunk support contract) to log this situation: that is, where time stamp extraction succeeds, but not because of &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I'm holding off submitting that comment in case you come back with a comment showing me that this situation &lt;EM&gt;is&lt;/EM&gt; logged, after all.&lt;/P&gt;

&lt;P&gt;If I don't hear back from you, then, based on your answer and subsequent comments, I believe that the answer to my original question ("Does Splunk log falling back to automatic timestamp extraction?") is "no". I'll add a comment to your answer to that effect, and, with thanks for your input, accept your answer.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 06:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468556#M80654</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-11-04T06:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468557#M80655</link>
      <description>&lt;P&gt;I'm not aware of an explicit log that says fallback parsing was used.  It's just part of the normal processing of timestamps.&lt;BR /&gt;
Be sure to submit &lt;EM&gt;feedback&lt;/EM&gt; on the docs page, rather than a comment.  Feedback is sent to the Docs team and is more likely to receive a response.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 13:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468557#M80655</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-07T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468558#M80656</link>
      <description>&lt;P&gt;Thanks very much for your time on this question, much appreciated. Here's a copy of the feedback I submitted on that docs page&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Re: the following text in this Splunk docs topic ("Configure timestamp recognition"):&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;every event will contain a warning about the inability to use strptime&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I quoted that text in a question on Splunk Answers, "Does Splunk log falling back to automatic timestamp extraction?" (&lt;A href="https://answers.splunk.com/answers/779316"&gt;https://answers.splunk.com/answers/779316&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Prominent Splunk user rich_galloway [apologies for this typo: I incorrectly inserted an underscore in your user name] answered, "I suggest you submit feedback on that documentation page as it's misleading."&lt;/P&gt;

&lt;P&gt;Hence this feedback.&lt;/P&gt;

&lt;P&gt;Could you please either correct that text, or clarify how "every event will contain a warning"? Specifically, I question the use of the word "contain".&lt;/P&gt;

&lt;P&gt;For details, please see the related comments on that question and answer in Splunk Answers. I'm about to add a comment to rich's answer requesting a related enhancement.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Graham Hannington&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 05:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468558#M80656</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-11-08T05:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468559#M80657</link>
      <description>&lt;P&gt;Based on this answer and subsequent comments, the answer to the question "Does Splunk log falling back to automatic timestamp extraction?" is "&lt;STRONG&gt;No&lt;/STRONG&gt;".&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 05:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468559#M80657</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-11-08T05:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk log falling back to automatic timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468560#M80658</link>
      <description>&lt;P&gt;&lt;STRONG&gt;This answer means that Splunk can silently fail.&lt;/STRONG&gt; If Splunk fails to extract an event timestamp using &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;, then it can successfully extract a timestamp by falling back to automatic timestamp extraction. The problem: the timestamp that Splunk automatic extraction identifies might not be the timestamp that the Splunk developer intended to be used as the event timestamp. This situation is not logged.&lt;/P&gt;

&lt;P&gt;I would like to see this situation optionally logged. Perhaps, a &lt;CODE&gt;LOG_TIME_FORMAT_FAIL = &amp;lt;boolean&amp;gt;&lt;/CODE&gt; setting (default: false) in &lt;CODE&gt;props.conf&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 05:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-log-falling-back-to-automatic-timestamp-extraction/m-p/468560#M80658</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-11-08T05:11:57Z</dc:date>
    </item>
  </channel>
</rss>

