<?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 Parser finding time but not date. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parser-finding-time-but-not-date/m-p/103515#M21759</link>
    <description>&lt;P&gt;I have an event that starts something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2012-03-20 06:07:00.000,BLANK,11.12.13.14,,,IP,Linux hostname 2.6.18-194.el5 1 SMP Tue Mar 16 21:52:39 EDT 2010 x86 64,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first field is the timestamp of the event, I've inserted a blank value to separate it from the IP it seemed to not be identifying that as a proper timestamp. The problem I've got is the parser is using the time portion of the timestamp (06:07:00) but the date from the kernel string ( "Mar 16 .... 2010" ).  &lt;/P&gt;

&lt;P&gt;Within inputs.conf I've tried adding a prefix to lock the lookahead to the start of the event and not look beyond the end of the timestamp, but it still picks out the wrong thing. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y-%m-%d %H:%M:$S.000
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 25
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 Mar 2012 19:55:02 GMT</pubDate>
    <dc:creator>inglisn</dc:creator>
    <dc:date>2012-03-28T19:55:02Z</dc:date>
    <item>
      <title>Parser finding time but not date.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parser-finding-time-but-not-date/m-p/103515#M21759</link>
      <description>&lt;P&gt;I have an event that starts something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2012-03-20 06:07:00.000,BLANK,11.12.13.14,,,IP,Linux hostname 2.6.18-194.el5 1 SMP Tue Mar 16 21:52:39 EDT 2010 x86 64,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first field is the timestamp of the event, I've inserted a blank value to separate it from the IP it seemed to not be identifying that as a proper timestamp. The problem I've got is the parser is using the time portion of the timestamp (06:07:00) but the date from the kernel string ( "Mar 16 .... 2010" ).  &lt;/P&gt;

&lt;P&gt;Within inputs.conf I've tried adding a prefix to lock the lookahead to the start of the event and not look beyond the end of the timestamp, but it still picks out the wrong thing. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y-%m-%d %H:%M:$S.000
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 25
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Mar 2012 19:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parser-finding-time-but-not-date/m-p/103515#M21759</guid>
      <dc:creator>inglisn</dc:creator>
      <dc:date>2012-03-28T19:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parser finding time but not date.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parser-finding-time-but-not-date/m-p/103516#M21760</link>
      <description>&lt;P&gt;These are good settings, but they belong in &lt;STRONG&gt;props.conf&lt;/STRONG&gt;, not inputs.conf.  And the stanza header for props.conf is a little different.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourcetype]
TIME_FORMAT = %Y-%m-%d %H:%M:%S.000
MAX_TIMESTAMP_LOOKAHEAD = 25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should do it. You might not even need the time format.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2012 22:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parser-finding-time-but-not-date/m-p/103516#M21760</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-28T22:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Parser finding time but not date.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parser-finding-time-but-not-date/m-p/103517#M21761</link>
      <description>&lt;P&gt;Doh! &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 08:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parser-finding-time-but-not-date/m-p/103517#M21761</guid>
      <dc:creator>inglisn</dc:creator>
      <dc:date>2012-03-29T08:22:07Z</dc:date>
    </item>
  </channel>
</rss>

