<?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 What is strptime format for 2017-08-01T11:48:15.000+0000 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-strptime-format-for-2017-08-01T11-48-15-000-0000/m-p/360066#M106465</link>
    <description>&lt;P&gt;I want to load a json into splunk. The time stamp of each event is in the format 2017-08-01T11:48:15.000+0000. I used %Y-%m-%dT%H:%M:%S.%3N+%z and similar combinations so that splunk recognises the time stamp but with no success.  What is correct strptime format so that splunk understands this.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 11:50:25 GMT</pubDate>
    <dc:creator>balamurali_dece</dc:creator>
    <dc:date>2017-08-09T11:50:25Z</dc:date>
    <item>
      <title>What is strptime format for 2017-08-01T11:48:15.000+0000</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-strptime-format-for-2017-08-01T11-48-15-000-0000/m-p/360066#M106465</link>
      <description>&lt;P&gt;I want to load a json into splunk. The time stamp of each event is in the format 2017-08-01T11:48:15.000+0000. I used %Y-%m-%dT%H:%M:%S.%3N+%z and similar combinations so that splunk recognises the time stamp but with no success.  What is correct strptime format so that splunk understands this.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-strptime-format-for-2017-08-01T11-48-15-000-0000/m-p/360066#M106465</guid>
      <dc:creator>balamurali_dece</dc:creator>
      <dc:date>2017-08-09T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is strptime format for 2017-08-01T11:48:15.000+0000</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-strptime-format-for-2017-08-01T11-48-15-000-0000/m-p/360067#M106466</link>
      <description>&lt;P&gt;looks like it works fine:&lt;BR /&gt;
try it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | makeresults count=1 
 | eval t = "2017-08-01T11:48:15.000+0100, 2017-08-01T12:48:15.000+0200, 2017-08-01T13:48:15.000+0300"
 | makemv delim="," t
 | mvexpand t
 | eval time = strptime(t, "%Y-%m-%dT%H:%M:%S.%3N%z")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-strptime-format-for-2017-08-01T11-48-15-000-0000/m-p/360067#M106466</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-08-09T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is strptime format for 2017-08-01T11:48:15.000+0000</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-strptime-format-for-2017-08-01T11-48-15-000-0000/m-p/360068#M106467</link>
      <description>&lt;P&gt;The &lt;CODE&gt;%z&lt;/CODE&gt; format variable includes the '+' so you don't have to specify it separately.  Try &lt;CODE&gt;%Y-%m-%dT%H:%M:%S.%3N%z&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-strptime-format-for-2017-08-01T11-48-15-000-0000/m-p/360068#M106467</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-08-09T13:25:56Z</dc:date>
    </item>
  </channel>
</rss>

