<?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: Unable to extract timestamp from a CSV file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90473#M18771</link>
    <description>&lt;H1&gt;your settings&lt;/H1&gt;

&lt;P&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%d-%m-%Y %H:%M:%S&lt;BR /&gt;
TIME_PREFIX=(^.+,)&lt;/P&gt;

&lt;H1&gt;set by detected source type&lt;/H1&gt;

&lt;P&gt;CHECK_FOR_HEADER=true&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
pulldown_type=true&lt;/P&gt;

&lt;P&gt;please try the above settings.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:18:09 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2020-09-28T14:18:09Z</dc:date>
    <item>
      <title>Unable to extract timestamp from a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90468#M18766</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
         I'm trying to extract some reports form a sample csv file. the first two lines are:&lt;/P&gt;

&lt;P&gt;BOT_ID,TECHNOLOGY,TEST_CASE_ID,TEST_CASE_NAME,TEST_PARAM_NAME,TEST_PARAM_VALUE,TEST_PARAM_UNIT,TEST_CASE_RESULT_ID,TEST_SUITE_RESULT_ID,&lt;STRONG&gt;TIMESTAMP&lt;/STRONG&gt;&lt;BR /&gt;
DD-99-AA-55-11-11,LTE,14,NA,LAC,ffff,NA,12e285e0-7a38-416e-b077-88aca4add7c8,fedec8a8-a156-4fc9-a63a-049523f2972e,&lt;STRONG&gt;11-01-2013 12:13:16&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;it fails with an error "could not use strptime to parse timestamp (null).&lt;BR /&gt;
Tried adding TIME_FORMAT=%d-%m-%y %H:%M:%S but this does not work either.&lt;BR /&gt;
What an I missing?&lt;/P&gt;

&lt;P&gt;My prop file looks like this:&lt;/P&gt;

&lt;P&gt;-#your settings&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%d-%m-%y %H:%M:%S&lt;BR /&gt;
TIME_PREFIX=^([^,]*,){14}&lt;/P&gt;

&lt;P&gt;-#set by detected source type&lt;BR /&gt;
CHECK_FOR_HEADER=true&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
pulldown_type=true&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90468#M18766</guid>
      <dc:creator>abhishek5282</dc:creator>
      <dc:date>2020-09-28T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90469#M18767</link>
      <description>&lt;P&gt;try with TIME_FORMAT=%d-%m-%Y %H:%M:%S&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 05:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90469#M18767</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-10T05:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90470#M18768</link>
      <description>&lt;P&gt;Thanks Linu, but this does not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 05:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90470#M18768</guid>
      <dc:creator>abhishek5282</dc:creator>
      <dc:date>2013-07-10T05:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90471#M18769</link>
      <description>&lt;P&gt;Are you indexing the files? You dont have to use any settings as splunk has inbuild capability to see the csv files. I would want you to check with UI data file addition. See how its being read and apply TIMEFORMAT there. By the way, if it doesn't read also you can also convert the timestamp with strptime function.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 05:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90471#M18769</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-10T05:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90472#M18770</link>
      <description>&lt;P&gt;Assuming your sample event is accurate, I think you have an error with: &lt;STRONG&gt;TIME_PREFIX=^([^,]*,){14}&lt;/STRONG&gt; shouldn't it be &lt;STRONG&gt;{9}&lt;/STRONG&gt; not  &lt;STRONG&gt;{14}&lt;/STRONG&gt;?  Just tested with &lt;A href="http://gskinner.com/RegExr/"&gt;http://gskinner.com/RegExr/&lt;/A&gt; which I find is a useful test tool for regex issues and changing it to {9} picks up everything before the timestamp.&lt;BR /&gt;
Another thing to bear in mind is that the default lookahead is 150 characters, which shouldn't affect your sample line but might want to keep that in mind if you have longer lines.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 09:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90472#M18770</guid>
      <dc:creator>samhughe</dc:creator>
      <dc:date>2013-07-10T09:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90473#M18771</link>
      <description>&lt;H1&gt;your settings&lt;/H1&gt;

&lt;P&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%d-%m-%Y %H:%M:%S&lt;BR /&gt;
TIME_PREFIX=(^.+,)&lt;/P&gt;

&lt;H1&gt;set by detected source type&lt;/H1&gt;

&lt;P&gt;CHECK_FOR_HEADER=true&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
pulldown_type=true&lt;/P&gt;

&lt;P&gt;please try the above settings.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-a-CSV-file/m-p/90473#M18771</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2020-09-28T14:18:09Z</dc:date>
    </item>
  </channel>
</rss>

