<?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: Why does Splunk recognize the timestamp only for specific dates? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361312#M162218</link>
    <description>&lt;P&gt;I uploaded the csv file from my computer. &lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 13:08:49 GMT</pubDate>
    <dc:creator>atemourt</dc:creator>
    <dc:date>2018-03-16T13:08:49Z</dc:date>
    <item>
      <title>Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361309#M162215</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a csv file with data from 2010 until 2017.&lt;/P&gt;

&lt;P&gt;Splunk seems to parse the timestamp correctly for most of the data but when the date is from 2010 or 2011 or 2012, I see the message: Could not use timestamp to parse the data from "".&lt;BR /&gt;
i.e. Could not use timestamp to parse the data from "1/21/2010".&lt;/P&gt;

&lt;P&gt;The format of date in the csv file is month/day/year.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Why does Splunk recognize the timestamp when the date is 1/20/2017 23:00:00 PM but it doesn't recognizes the timestamp when the date is 1/21/2010 11:00:00 AM?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Sample of data:&lt;BR /&gt;
Date    Type    Latitude    Longitude   Id&lt;BR /&gt;
1/21/2010 11:00 Dry Cargo   39.3869634  22.9385489  29&lt;BR /&gt;
1/22/2010 8:00  Dry Cargo   39.3675609  22.9491659  30&lt;BR /&gt;
1/23/2010 13:30 Dry Cargo   39.367539   22.9229295  31&lt;BR /&gt;
1/24/2010 9:00  Refrigerated Cargo  39.3686508  22.9414365  32&lt;BR /&gt;
1/26/2010 18:00 Dry Cargo   39.3766097  22.9603403  33&lt;BR /&gt;
1/26/2010 17:00 Dry Cargo   39.3557886  22.9581058  34&lt;BR /&gt;
1/27/2010 10:00 Refrigerated Cargo  39.3799523  22.9232278  35&lt;BR /&gt;
1/27/2010 12:00 Dry Cargo   39.3647131  22.9517557  36&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361309#M162215</guid>
      <dc:creator>atemourt</dc:creator>
      <dc:date>2018-03-16T10:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361310#M162216</link>
      <description>&lt;P&gt;Are you ingesting that file somehow or just inputing it as a lookup?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 13:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361310#M162216</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-16T13:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361311#M162217</link>
      <description>&lt;P&gt;You need to set base configs which tell Splunk how to read the timestamp&lt;/P&gt;

&lt;P&gt;Add this to your props.conf and restart the splunkd service &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YOUR_SOURCETYPE]
TIME_PREFIX=^
TIME_FORMAT=%m/%e/%Y %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD=18
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 13:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361311#M162217</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-03-16T13:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361312#M162218</link>
      <description>&lt;P&gt;I uploaded the csv file from my computer. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 13:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361312#M162218</guid>
      <dc:creator>atemourt</dc:creator>
      <dc:date>2018-03-16T13:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361313#M162219</link>
      <description>&lt;P&gt;What is your MAX_DAYS_AGO setting?  I would expect a different error message if this was the cause, but it's worth changing it to 5000 or so to see if it helps.  The default setting is 2000, which means Splunk will reject timestamps more than 5 years old.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361313#M162219</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T18:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361314#M162220</link>
      <description>&lt;P&gt;Thanks for the advise.&lt;BR /&gt;
I have set the MAX_DAYS_AGO to 5000 in props.conf.&lt;BR /&gt;
Actually, my props.conf is:&lt;BR /&gt;
[data]&lt;BR /&gt;
DATETIME_CONFIG = &lt;BR /&gt;
MAX_DAYS_AGO = 5000&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIMESTAMP_FIELDS = Date&lt;BR /&gt;
category = Structured&lt;BR /&gt;
description = Comma-separated value format. Set header and other settings in "Delimited Settings"&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;However, it doesn't work. Splunk still doesn't recognize dates from 2010, 2011 and 2012. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361314#M162220</guid>
      <dc:creator>atemourt</dc:creator>
      <dc:date>2020-09-29T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361315#M162221</link>
      <description>&lt;P&gt;It's because you don't have &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; or &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; set.. I gave you the correct stanza in my answer above.. &lt;/P&gt;</description>
      <pubDate>Sun, 18 Mar 2018 23:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361315#M162221</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-03-18T23:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361316#M162222</link>
      <description>&lt;P&gt;Hello skoelpin,&lt;/P&gt;

&lt;P&gt;Thank you for the answer.&lt;/P&gt;

&lt;P&gt;I have tried what you suggested, but Splunk cannot read the timestamp.&lt;BR /&gt;
I still see the message: Could not use timestamp to parse the data from "".&lt;/P&gt;

&lt;P&gt;Is there anything else that I can try?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361316#M162222</guid>
      <dc:creator>atemourt</dc:creator>
      <dc:date>2018-03-19T09:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361317#M162223</link>
      <description>&lt;P&gt;Did you restart Splunk after modifying the config file?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 02:04:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361317#M162223</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-03-20T02:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk recognize the timestamp only for specific dates?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361318#M162224</link>
      <description>&lt;P&gt;Yes, I restarted Splunk.&lt;BR /&gt;
Every time I do a change in the conf files, I restart Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 09:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-recognize-the-timestamp-only-for-specific-dates/m-p/361318#M162224</guid>
      <dc:creator>atemourt</dc:creator>
      <dc:date>2018-03-20T09:19:32Z</dc:date>
    </item>
  </channel>
</rss>

