<?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 Splunk parsing day of year incorrectly? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229375#M241</link>
    <description>&lt;P&gt;Good day.&lt;/P&gt;

&lt;P&gt;I am trying to import a CSV into Splunk and specifying a Timestamp format and it appears Splunk is not calculating the day of year properly.&lt;/P&gt;

&lt;P&gt;My data has a column called 'Start Time' with values such as &lt;CODE&gt;222/06:00:00&lt;/CODE&gt;  I have specified the timestamp fields as &lt;CODE&gt;Start Time&lt;/CODE&gt; and the Timestamp format as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%j/%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk correctly identifies the time but it assumes the day/date starts as today (08/15/2016) instead of the specified day of year in the imported data (e.g. 222 is actually 9 Aug. 2016).&lt;/P&gt;

&lt;P&gt;I have tested this conversion by editing my CSV so that one of the rows has &lt;CODE&gt;001/06:05:04&lt;/CODE&gt;, which should parse to &lt;CODE&gt;01/01/2016 06:05:04.000&lt;/CODE&gt; but instead parses to &lt;CODE&gt;08/15/2016 06:05:04.000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I've tried this data import on both Splunk Light Free (6.4.0) and Splunk Enterprise (6.4.2) and the results are the same.&lt;/P&gt;

&lt;P&gt;Is this a problem with my data or with the way Splunk is parsing the day of year value?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Andy&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2016 17:31:54 GMT</pubDate>
    <dc:creator>arechenberg</dc:creator>
    <dc:date>2016-08-15T17:31:54Z</dc:date>
    <item>
      <title>Splunk parsing day of year incorrectly?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229375#M241</link>
      <description>&lt;P&gt;Good day.&lt;/P&gt;

&lt;P&gt;I am trying to import a CSV into Splunk and specifying a Timestamp format and it appears Splunk is not calculating the day of year properly.&lt;/P&gt;

&lt;P&gt;My data has a column called 'Start Time' with values such as &lt;CODE&gt;222/06:00:00&lt;/CODE&gt;  I have specified the timestamp fields as &lt;CODE&gt;Start Time&lt;/CODE&gt; and the Timestamp format as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%j/%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk correctly identifies the time but it assumes the day/date starts as today (08/15/2016) instead of the specified day of year in the imported data (e.g. 222 is actually 9 Aug. 2016).&lt;/P&gt;

&lt;P&gt;I have tested this conversion by editing my CSV so that one of the rows has &lt;CODE&gt;001/06:05:04&lt;/CODE&gt;, which should parse to &lt;CODE&gt;01/01/2016 06:05:04.000&lt;/CODE&gt; but instead parses to &lt;CODE&gt;08/15/2016 06:05:04.000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I've tried this data import on both Splunk Light Free (6.4.0) and Splunk Enterprise (6.4.2) and the results are the same.&lt;/P&gt;

&lt;P&gt;Is this a problem with my data or with the way Splunk is parsing the day of year value?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Andy&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 17:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229375#M241</guid>
      <dc:creator>arechenberg</dc:creator>
      <dc:date>2016-08-15T17:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing day of year incorrectly?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229376#M242</link>
      <description>&lt;P&gt;You date format doesn't have a year value. Only has day of the year, which occurs every year. So splunk defaults to current date.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 17:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229376#M242</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-15T17:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing day of year incorrectly?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229377#M243</link>
      <description>&lt;P&gt;The above format does work for me (splunk 6.2.6). Could you share the props.conf  you're trying to user, for the sourcetype. (if using Splunk's add data from ui, go to advanced section on left and copy to clipboard).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 18:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229377#M243</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-15T18:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing day of year incorrectly?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229378#M244</link>
      <description>&lt;P&gt;I believe that @sundareshr is correct:&lt;BR /&gt;
"You [sic] date format doesn't have a year value. Only has day of the year, which occurs every year. So splunk defaults to current date."&lt;/P&gt;

&lt;P&gt;The timestamp format must yield a complete and valid date. A partial date will not work. Here is &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Data/HowSplunkextractstimestamps"&gt;How Timestamp Assignment Works&lt;/A&gt;. So you need to get the year into the date somewhere&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 20:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229378#M244</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-08-16T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing day of year incorrectly?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229379#M245</link>
      <description>&lt;P&gt;Thanks for the reply Lisa.  That was indeed the issue.  I added the year in front as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  2016/231/06:00:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk then parsed the timestamp as expected.&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 15:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-day-of-year-incorrectly/m-p/229379#M245</guid>
      <dc:creator>arechenberg</dc:creator>
      <dc:date>2016-08-24T15:17:40Z</dc:date>
    </item>
  </channel>
</rss>

