<?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 How to ask splunk to extract time_stamp only if time string is at the start of a line? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ask-splunk-to-extract-time-stamp-only-if-time-string-is/m-p/59733#M96873</link>
    <description>&lt;P&gt;I tried to put the "TIME_PREFIX = ^" at props.conf at system/default, system/local, myapp/default, myapp/local but none of them is working. What should I do?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2011 04:18:36 GMT</pubDate>
    <dc:creator>houxiaoxiao</dc:creator>
    <dc:date>2011-08-18T04:18:36Z</dc:date>
    <item>
      <title>How to ask splunk to extract time_stamp only if time string is at the start of a line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ask-splunk-to-extract-time-stamp-only-if-time-string-is/m-p/59733#M96873</link>
      <description>&lt;P&gt;I tried to put the "TIME_PREFIX = ^" at props.conf at system/default, system/local, myapp/default, myapp/local but none of them is working. What should I do?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2011 04:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ask-splunk-to-extract-time-stamp-only-if-time-string-is/m-p/59733#M96873</guid>
      <dc:creator>houxiaoxiao</dc:creator>
      <dc:date>2011-08-18T04:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to ask splunk to extract time_stamp only if time string is at the start of a line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ask-splunk-to-extract-time-stamp-only-if-time-string-is/m-p/59734#M96874</link>
      <description>&lt;P&gt;I think you may need to add more to your solution.  By default, splunk will already will start looking at the start of a line for the timestamp.  I think what you may be looking for will be achieved by using MAX_TIMESTAMP_LOOKAHEAD in conjunction with what you have.  By default splunk looks from the start of a line, then looks up to 150 char in the event for a timestamp.  By adjusting MAX_TIMESTAMP_LOOKAHEAD, you can control how far into an event splunk looks for the timestamp.  If you use something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk will start on the first character, and count up to 10 more characters for a timestamp.  Adjust your MAX_TIMESTAMP_LOOKAHEAD to fit your timestamp syntax and splunk will be forced to match your timestamp at the start of the line.&lt;/P&gt;

&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2011 04:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ask-splunk-to-extract-time-stamp-only-if-time-string-is/m-p/59734#M96874</guid>
      <dc:creator>bbingham</dc:creator>
      <dc:date>2011-08-18T04:39:32Z</dc:date>
    </item>
  </channel>
</rss>

