<?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: Need help to get Timestamp correctly in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199607#M39503</link>
    <description>&lt;P&gt;Thanks, works perfect.  I do added "regex" to the Timestamp field and "date format" in format field&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jun 2014 18:06:05 GMT</pubDate>
    <dc:creator>lakromani</dc:creator>
    <dc:date>2014-06-17T18:06:05Z</dc:date>
    <item>
      <title>Need help to get Timestamp correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199605#M39501</link>
      <description>&lt;P&gt;I have data in the following format (Serv-U ftp log)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[5] Sun 01Jun08 00:24:04 - (000555) Connected to 76.76.76.76 (Local address 10.11.12.13)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need help to get Splunk to get time correctly out of this.&lt;/P&gt;

&lt;P&gt;Time is in this format (I think)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%d%b%y %T
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So how to do it?&lt;BR /&gt;&lt;BR /&gt;
Automatically locate timestamp (default)&lt;BR /&gt;&lt;BR /&gt;
or&lt;BR /&gt;
Timestamp is always prefaced by a pattern&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I tried Auto and entered the date format in format field.  It then complain about prefix?&lt;BR /&gt;&lt;BR /&gt;
If I select "Timestamp is always prefaced..." what then to fill in the filed?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 16:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199605#M39501</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2014-06-17T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get Timestamp correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199606#M39502</link>
      <description>&lt;P&gt;Is your timestamp always prefaced by the pattern above "[5] Sun "? (Assuming the number and the 3-char weekday changes).&lt;/P&gt;

&lt;P&gt;If so, you could enter a prefaced regex such as "\[\d\]\s\w{3}\s" (not sure if escape needed on brackets or not)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 16:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199606#M39502</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2014-06-17T16:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get Timestamp correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199607#M39503</link>
      <description>&lt;P&gt;Thanks, works perfect.  I do added "regex" to the Timestamp field and "date format" in format field&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 18:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199607#M39503</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2014-06-17T18:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get Timestamp correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199608#M39504</link>
      <description>&lt;P&gt;I'm a little late, but I just dealt with this yesterday.  This is what was in my props.conf on my indexers for the servu_logs sourcetype:&lt;/P&gt;

&lt;P&gt;[servu_logs]&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = ([\r\n]+)&lt;/P&gt;

&lt;P&gt;TIME_PREFIX = [[\d]+]\s[\w]+\s&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d%b%y %H:%M:%S&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199608#M39504</guid>
      <dc:creator>hortonew</dc:creator>
      <dc:date>2014-10-08T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get Timestamp correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199609#M39505</link>
      <description>&lt;P&gt;I have a similar problem:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE=\d{7}
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
TIME_FORMAT=%3N
TIME_PREFIX=\d{7}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Trying to parse out the millisecond timestamp from this log file, &lt;CODE&gt;9281736&lt;/CODE&gt; :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  9281736 : COUNT IN 1003
Tx:   01 04 00 71 00 02 21 d0                              ...q..!.
Rx:   01 04 04 00 08 0a 28 7c f8    
  9282136 : COUNT IN 1003
Tx:   01 04 00 c9 00 02 a1 f5                              ........
Rx:   01 04 04 00 08 00 00 7a 46 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect my TIME_FORMAT is wrong, because it breakes up events correctly.&lt;BR /&gt;
Get the error of: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Could not use strptime to parse timestamp from ": COUNT 1003\n ...... &lt;BR /&gt;
Make sure a prefix pattern is&lt;BR /&gt;
specified if the events don`t begin&lt;BR /&gt;
with a timestamp.&lt;/P&gt;

&lt;P&gt;Failed to parse timestamp. Defaulting to file modtime.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Any suggestion would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199609#M39505</guid>
      <dc:creator>nitrogaute</dc:creator>
      <dc:date>2014-10-28T10:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get Timestamp correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199610#M39506</link>
      <description>&lt;P&gt;Hi @nitrogaute&lt;/P&gt;

&lt;P&gt;Using the answer space on a post isn't really the best (or appropriate) way to find a solution to an issue you're having on this site. Can you please post this as a separate question?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 01:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-to-get-Timestamp-correctly/m-p/199610#M39506</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-10-30T01:32:46Z</dc:date>
    </item>
  </channel>
</rss>

