<?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 do I check if my custom TIME_FORMAT is successfully parsing the time stamps of my events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-check-if-my-custom-TIME-FORMAT-is-successfully-parsing/m-p/97702#M20369</link>
    <description>&lt;P&gt;In versions of Splunk 4.3 and above, Data Preview will identify TIME_FORMAT failures for you, allowing interactive editing/testing cycles TIME_FORMAT in data preview, or simply testing if your existing TIME_FORMAT in props.conf is operating.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://wiki.splunk.com/images/2/2f/Strptime.png" alt="Data Preview displaying strptime failure tooltip" title="TIME_FORMAT failure" /&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;In versions of Splunk 4.2 and earlier, there is no particular great workflow method.  One method is to, for your particular sourcetype in &lt;CODE&gt;props.conf&lt;/CODE&gt;, set &lt;CODE&gt;DATETIME_CONFIG = /etc/null_datetime.xml&lt;/CODE&gt; with an xml file such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
    &amp;lt;timePatterns&amp;gt;
    &amp;lt;/timePatterns&amp;gt;
    &amp;lt;datePatterns&amp;gt;
    &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An alternate method is to change the log level for DateParserVerbose to DEBUG, which will cause strptime failures to be written to splunkd.log.  This is &lt;EM&gt;very&lt;/EM&gt; verbose however, so not recommended for high volume environments.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:04:42 GMT</pubDate>
    <dc:creator>jrodman</dc:creator>
    <dc:date>2020-09-28T12:04:42Z</dc:date>
    <item>
      <title>How do I check if my custom TIME_FORMAT is successfully parsing the time stamps of my events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-check-if-my-custom-TIME-FORMAT-is-successfully-parsing/m-p/97701#M20368</link>
      <description>&lt;P&gt;I am using TIME_FORMAT (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/propsconf" target="_blank"&gt;props.conf.spec&lt;/A&gt; for reference) in an attempt to accelerate the date-time parsing of my events, but I have no way to know if the strptime format I specified is successfully matching the  time stamp string in my events and therefore avoiding all of the regular expression matching in &lt;CODE&gt;$SPLUNK_HOME/etc/datetime.xml&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Is there any way that I could find out if my TIME_FORMAT is correct?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-check-if-my-custom-TIME-FORMAT-is-successfully-parsing/m-p/97701#M20368</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2020-09-28T12:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check if my custom TIME_FORMAT is successfully parsing the time stamps of my events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-check-if-my-custom-TIME-FORMAT-is-successfully-parsing/m-p/97702#M20369</link>
      <description>&lt;P&gt;In versions of Splunk 4.3 and above, Data Preview will identify TIME_FORMAT failures for you, allowing interactive editing/testing cycles TIME_FORMAT in data preview, or simply testing if your existing TIME_FORMAT in props.conf is operating.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://wiki.splunk.com/images/2/2f/Strptime.png" alt="Data Preview displaying strptime failure tooltip" title="TIME_FORMAT failure" /&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;In versions of Splunk 4.2 and earlier, there is no particular great workflow method.  One method is to, for your particular sourcetype in &lt;CODE&gt;props.conf&lt;/CODE&gt;, set &lt;CODE&gt;DATETIME_CONFIG = /etc/null_datetime.xml&lt;/CODE&gt; with an xml file such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
    &amp;lt;timePatterns&amp;gt;
    &amp;lt;/timePatterns&amp;gt;
    &amp;lt;datePatterns&amp;gt;
    &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An alternate method is to change the log level for DateParserVerbose to DEBUG, which will cause strptime failures to be written to splunkd.log.  This is &lt;EM&gt;very&lt;/EM&gt; verbose however, so not recommended for high volume environments.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-check-if-my-custom-TIME-FORMAT-is-successfully-parsing/m-p/97702#M20369</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2020-09-28T12:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check if my custom TIME_FORMAT is successfully parsing the time stamps of my events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-check-if-my-custom-TIME-FORMAT-is-successfully-parsing/m-p/97703#M20370</link>
      <description>&lt;P&gt;All those years, it was there, just under my nose!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 16:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-check-if-my-custom-TIME-FORMAT-is-successfully-parsing/m-p/97703#M20370</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-07-13T16:36:41Z</dc:date>
    </item>
  </channel>
</rss>

