<?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 Timestamp lookahead questions in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/272997#M52422</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have the following configuration:&lt;BR /&gt;
timestamp format : %c&lt;BR /&gt;
timestamp prefix: &lt;CODE&gt;Start\sTime:\s+&lt;/CODE&gt;&lt;BR /&gt;
lookahead: ???&lt;/P&gt;

&lt;P&gt;I want a configuration that will look for the timestamp through the entire event regardless of the size of the event. Is there any value that can be setup to lookahead for this configuration? If I setup lookahead to 100000 and the timestamp is after the 100 character, Would Splunk go through the entire event even though it find the timestamp during the first 100 characters?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 21:29:49 GMT</pubDate>
    <dc:creator>edrivera3</dc:creator>
    <dc:date>2015-10-14T21:29:49Z</dc:date>
    <item>
      <title>Timestamp lookahead questions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/272997#M52422</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have the following configuration:&lt;BR /&gt;
timestamp format : %c&lt;BR /&gt;
timestamp prefix: &lt;CODE&gt;Start\sTime:\s+&lt;/CODE&gt;&lt;BR /&gt;
lookahead: ???&lt;/P&gt;

&lt;P&gt;I want a configuration that will look for the timestamp through the entire event regardless of the size of the event. Is there any value that can be setup to lookahead for this configuration? If I setup lookahead to 100000 and the timestamp is after the 100 character, Would Splunk go through the entire event even though it find the timestamp during the first 100 characters?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/272997#M52422</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-10-14T21:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp lookahead questions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/272998#M52423</link>
      <description>&lt;P&gt;When you use &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;, the nature of &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; changes: instead of counting from the beginning of the raw event text, it will count from the position AFTER the &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;.  So by using &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;, you pretty much guarantee that Splunk will find your timestamp and not give up, provided you have a good RegEx for &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/272998#M52423</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-14T21:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp lookahead questions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/272999#M52424</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:44:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/272999#M52424</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-10-14T21:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp lookahead questions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/273000#M52425</link>
      <description>&lt;P&gt;If you see the defintion of the MAX_TIMESTAMP_LOOKAHEAD from Splunk Docs (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Configuretimestamprecognition" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Configuretimestamprecognition&lt;/A&gt; ), its says, this defines how far splunk  will go to locate the full timestamp and it starts from location of the TIME_PREFIX. So if you've a proper prefix, you don't have to worry about Splunk scanning whole event. Splunk will first find the TIME_PREFIX and search through number of character specified in MAX_TIMESTAMP_LOOKAHEAD, which should be length of the timestamp value, (for %c I think its 24 char so keeping it 25 OR 30 should work just fine)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/273000#M52425</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T07:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp lookahead questions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/273001#M52426</link>
      <description>&lt;P&gt;Hi edrivera1,&lt;/P&gt;

&lt;P&gt;to answer your questions:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Is there any value that can be setup to lookahead for this configuration?&lt;/STRONG&gt; &lt;BR /&gt;
You can set &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD=0&lt;/CODE&gt; or &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD=-1&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/Propsconf&lt;/A&gt; to disable the length constraint for timestamp recognition.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;If I setup lookahead to 100000 and the timestamp is after the 100 character, Would Splunk go through the entire event even though it find the timestamp during the first 100 characters?&lt;/STRONG&gt;&lt;BR /&gt;
No, your just telling Splunk how far to look at max into the event. If the timestamp is found before &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; is reached Splunk will use this timestamp. &lt;/P&gt;

&lt;P&gt;BTW if the timestamp is not found within &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; Splunk will use other steps and try to find a timestamp. See the docs for more details &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/HowSplunkextractstimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-lookahead-questions/m-p/273001#M52426</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-10-14T21:56:26Z</dc:date>
    </item>
  </channel>
</rss>

