<?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 Datetime.xml - extracting hour that does not exist in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Datetime-xml-extracting-hour-that-does-not-exist/m-p/84653#M17593</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I have a series of logs that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;200312,111523  -&amp;gt; this means 20 March 2012, 11:15:23 am
200312,53344  -&amp;gt; this means 20 March 2012, 05:33:44 am (note that the first 0 is missing in the hour)
200312,1428 -&amp;gt; this means 20 March 2012, 00:14:28 am (note that the first two 00 are missing in the hour)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have already written the datetime.xml to cater for the first two scenarios. But for the 3rd one where the hour is totally missing, how do I cater for this on my datetime.xml? &lt;/P&gt;

&lt;P&gt;Has anyone managed to think of a way to 'substitue' 00 as the hour if it's missing from the logs itself?&lt;/P&gt;

&lt;P&gt;Thanks for any insights.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2013 12:51:04 GMT</pubDate>
    <dc:creator>twkan</dc:creator>
    <dc:date>2013-04-04T12:51:04Z</dc:date>
    <item>
      <title>Datetime.xml - extracting hour that does not exist</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Datetime-xml-extracting-hour-that-does-not-exist/m-p/84653#M17593</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I have a series of logs that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;200312,111523  -&amp;gt; this means 20 March 2012, 11:15:23 am
200312,53344  -&amp;gt; this means 20 March 2012, 05:33:44 am (note that the first 0 is missing in the hour)
200312,1428 -&amp;gt; this means 20 March 2012, 00:14:28 am (note that the first two 00 are missing in the hour)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have already written the datetime.xml to cater for the first two scenarios. But for the 3rd one where the hour is totally missing, how do I cater for this on my datetime.xml? &lt;/P&gt;

&lt;P&gt;Has anyone managed to think of a way to 'substitue' 00 as the hour if it's missing from the logs itself?&lt;/P&gt;

&lt;P&gt;Thanks for any insights.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2013 12:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Datetime-xml-extracting-hour-that-does-not-exist/m-p/84653#M17593</guid>
      <dc:creator>twkan</dc:creator>
      <dc:date>2013-04-04T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime.xml - extracting hour that does not exist</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Datetime-xml-extracting-hour-that-does-not-exist/m-p/84654#M17594</link>
      <description>&lt;P&gt;Okay, decided to write a script to pad the time with zeros before being indexed by Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 00:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Datetime-xml-extracting-hour-that-does-not-exist/m-p/84654#M17594</guid>
      <dc:creator>twkan</dc:creator>
      <dc:date>2013-04-05T00:12:40Z</dc:date>
    </item>
  </channel>
</rss>

