<?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: Difficulty in Timestamp Recongnition in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43199#M8055</link>
    <description>&lt;P&gt;I would also recommend that you add &lt;CODE&gt;sourcetype = &amp;lt;sourcetype&amp;gt;&lt;/CODE&gt; in your &lt;CODE&gt;[source::&amp;lt;path&amp;gt;]&lt;/CODE&gt; stanza.  Otherwise you risk the wrong sourcetype association and then your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; and other sourcetype-based settings will not be applied.  Splunk may be getting this right on it's own, but I've found it helpful to be explicit about sourcetype associations. That's my 2 cents.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2010 20:54:08 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-09-03T20:54:08Z</dc:date>
    <item>
      <title>Difficulty in Timestamp Recongnition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43196#M8052</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I am trying to have splunk know the right timestamp in the following event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;COR_00000001,Com1,LOC_00000001,DC1,SUB_00000001,21F,GRP_00000001,Rack1,CON_00000001,Saving,8A0000000521A81D_1,2010/09/03,3F PW System,Powe,8A0000000521A81D_1,kWh,2010/09/03 00:00:00,15,83946325
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There is a .csv file, and there are a header line at the first line and the rest of the lines are similar to the event above.&lt;/P&gt;

&lt;P&gt;The correct timestamp is "2010/09/03 00:00:00" which is in %Y/%m/%d %H:%M:%S format.&lt;/P&gt;

&lt;P&gt;My props.conf looks like the follwing, but I can not get the right timestamp.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::&amp;lt;path&amp;gt;]
CHECK_FOR_HEADER=false

[&amp;lt;sourcetype&amp;gt;]
SHOULD_LINEMERGE = False
BREAK_ONLY_BEFORE_DATE = False
TIME_FORMAT = %Y/%m/%d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could anyone help me out?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 12:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43196#M8052</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2010-09-03T12:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty in Timestamp Recongnition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43197#M8053</link>
      <description>&lt;P&gt;I would first try it without TIME_FORMAT but increase:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = &amp;lt;integer&amp;gt;
* Specifies how far (in characters) into an event Splunk should look for a timestamp.
* Defaults to 150.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only if the result is still bad you might continue with TIME_FORMAT.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 13:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43197#M8053</guid>
      <dc:creator>meno</dc:creator>
      <dc:date>2010-09-03T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty in Timestamp Recongnition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43198#M8054</link>
      <description>&lt;P&gt;Thanks meno! it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 13:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43198#M8054</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2010-09-03T13:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty in Timestamp Recongnition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43199#M8055</link>
      <description>&lt;P&gt;I would also recommend that you add &lt;CODE&gt;sourcetype = &amp;lt;sourcetype&amp;gt;&lt;/CODE&gt; in your &lt;CODE&gt;[source::&amp;lt;path&amp;gt;]&lt;/CODE&gt; stanza.  Otherwise you risk the wrong sourcetype association and then your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; and other sourcetype-based settings will not be applied.  Splunk may be getting this right on it's own, but I've found it helpful to be explicit about sourcetype associations. That's my 2 cents.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 20:54:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Difficulty-in-Timestamp-Recongnition/m-p/43199#M8055</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-09-03T20:54:08Z</dc:date>
    </item>
  </channel>
</rss>

