<?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: CSV Timestamp issue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38236#M7024</link>
    <description>&lt;P&gt;You should probably try a different set of strptime/strftime variables. Currently you define your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; as &lt;/P&gt;

&lt;P&gt;minute/full date/year hour:minute&lt;/P&gt;

&lt;P&gt;I'd try to change this into&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_FORMAT = %D %H:%M&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;%D = m/d/y&lt;/P&gt;

&lt;P&gt;for more info, see; &lt;A href="http://www.strftime.net"&gt;http://www.strftime.net&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2013 07:11:54 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-08-19T07:11:54Z</dc:date>
    <item>
      <title>CSV Timestamp issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38235#M7023</link>
      <description>&lt;P&gt;I am struggling to get splunk to parse the timestamps properly in a CSV file (Firefox Web History log exported to CSV). I tried the default CSV type, and all I get is the CSV file's modtime listed as the timestamps. Here are the first few lines of the CSV (redacted):&lt;/P&gt;

&lt;P&gt;4/3/07 0:36, some url,html,????&lt;/P&gt;

&lt;P&gt;4/3/07 0:35,some url, html,?????&lt;/P&gt;

&lt;P&gt;4/3/07 0:34,some url,html, ????&lt;/P&gt;

&lt;P&gt;Here is what I have added to my props.conf file:&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %M/%D/%Y %H:%M&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD = 19 &lt;/P&gt;

&lt;P&gt;Same error. Any advice appreciated as I am new to splunk and still figuring it out.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38235#M7023</guid>
      <dc:creator>drangzt</dc:creator>
      <dc:date>2020-09-28T14:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Timestamp issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38236#M7024</link>
      <description>&lt;P&gt;You should probably try a different set of strptime/strftime variables. Currently you define your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; as &lt;/P&gt;

&lt;P&gt;minute/full date/year hour:minute&lt;/P&gt;

&lt;P&gt;I'd try to change this into&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_FORMAT = %D %H:%M&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;%D = m/d/y&lt;/P&gt;

&lt;P&gt;for more info, see; &lt;A href="http://www.strftime.net"&gt;http://www.strftime.net&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 07:11:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38236#M7024</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-19T07:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Timestamp issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38237#M7025</link>
      <description>&lt;P&gt;Tried your suggestion and same problem. Note: I did make sure that the source file was re-indexed.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 11:53:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38237#M7025</guid>
      <dc:creator>drangzt</dc:creator>
      <dc:date>2013-08-19T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Timestamp issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38238#M7026</link>
      <description>&lt;P&gt;There's also the issue with that %H assumes a two-digit value, so the hour "0" would not be understood (it expects "00"). %k is the equivalent without leading zero. Same goes for the day of the month (%e is without leading zero), etc.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 12:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38238#M7026</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-19T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Timestamp issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38239#M7027</link>
      <description>&lt;P&gt;Good point. Though I seem to remember that Splunk can handle optional leading zeroes. But to be more exact, try;&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %m/%e/%y %k:%M&lt;/P&gt;

&lt;P&gt;There is (afaik) no 1-12 format for months, %m requires 01-12. Also, if your hours are 1-12 use %l (lower-case L) instead of %k (which is 0-23). &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Commontimeformatvariables"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 13:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-Timestamp-issue/m-p/38239#M7027</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-19T13:20:35Z</dc:date>
    </item>
  </channel>
</rss>

