<?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 validate default date parsing support for ISO8601 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/validate-default-date-parsing-support-for-ISO8601/m-p/542049#M90600</link>
    <description>&lt;P&gt;Is there a way to validate default date parsing against ISO8601 ( 2012-11-02'T'14:34:02,781-07:00 ) date/time? I tried&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="2012-11-02'T'14:34:02,781-07:00 foo=bar"&lt;/LI-CODE&gt;&lt;P&gt;and the timestamp is not being parsed.&lt;/P&gt;&lt;P&gt;I also tried with no success setting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=log4j&lt;/LI-CODE&gt;&lt;P&gt;Any pointers for the syntax to work this?&lt;/P&gt;&lt;P&gt;There are a number of threads without complete approaches around this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=location&amp;amp;location=forum-board:getting-data-in&amp;amp;q=ISO8601" target="_blank"&gt;https://community.splunk.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=location&amp;amp;location=forum-board:getting-data-in&amp;amp;q=ISO8601&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Mar 2021 21:18:42 GMT</pubDate>
    <dc:creator>gliptak</dc:creator>
    <dc:date>2021-03-02T21:18:42Z</dc:date>
    <item>
      <title>validate default date parsing support for ISO8601</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/validate-default-date-parsing-support-for-ISO8601/m-p/542049#M90600</link>
      <description>&lt;P&gt;Is there a way to validate default date parsing against ISO8601 ( 2012-11-02'T'14:34:02,781-07:00 ) date/time? I tried&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="2012-11-02'T'14:34:02,781-07:00 foo=bar"&lt;/LI-CODE&gt;&lt;P&gt;and the timestamp is not being parsed.&lt;/P&gt;&lt;P&gt;I also tried with no success setting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=log4j&lt;/LI-CODE&gt;&lt;P&gt;Any pointers for the syntax to work this?&lt;/P&gt;&lt;P&gt;There are a number of threads without complete approaches around this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=location&amp;amp;location=forum-board:getting-data-in&amp;amp;q=ISO8601" target="_blank"&gt;https://community.splunk.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=location&amp;amp;location=forum-board:getting-data-in&amp;amp;q=ISO8601&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 21:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/validate-default-date-parsing-support-for-ISO8601/m-p/542049#M90600</guid>
      <dc:creator>gliptak</dc:creator>
      <dc:date>2021-03-02T21:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: validate default date parsing support for ISO8601</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/validate-default-date-parsing-support-for-ISO8601/m-p/542058#M90602</link>
      <description>&lt;P&gt;First, the letter T is not quoted in ISO8601 datetime strings.&amp;nbsp; The spec may put quotation marks around it, but that's to emphasize it as a literal character.&lt;/P&gt;&lt;P&gt;Second, timestamps are interpreted when the data is indexed.&amp;nbsp; Since the &lt;FONT face="courier new,courier"&gt;makeresults&lt;/FONT&gt; command is not indexing any data, no timestamp is parsed.&amp;nbsp; You need the &lt;FONT face="courier new,courier"&gt;strptime()&lt;/FONT&gt; function to do that in SPL.&lt;/P&gt;&lt;P&gt;Try putting the sample event into a text file and using the &lt;FONT face="courier new,courier"&gt;Settings-&amp;gt;Add Data&lt;/FONT&gt; wizard to read that file.&amp;nbsp; Then you'll see the date parsed correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 01:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/validate-default-date-parsing-support-for-ISO8601/m-p/542058#M90602</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-03T01:16:22Z</dc:date>
    </item>
  </channel>
</rss>

