<?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: First instance of timestamp in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/First-instance-of-timestamp/m-p/273939#M190221</link>
    <description>&lt;P&gt;Also keep in mind  2016/05/27 06:30 is 16 characters, so you might want to change your max_timestamp_lookahead to 16. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:48:13 GMT</pubDate>
    <dc:creator>ryanoconnor</dc:creator>
    <dc:date>2020-09-29T09:48:13Z</dc:date>
    <item>
      <title>First instance of timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/First-instance-of-timestamp/m-p/273937#M190219</link>
      <description>&lt;P&gt;Trying to get the first occurrence of the timestamp to be used for _time &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LogFile:
2016/05/27 06:30; 2016/05/27 06:29:18 Test1 :Service1
2016/05/27 05:30; 2016/05/27 05:24:16 Test2 :Service2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Have used props.conf to use MAX_TIMESTAMP_LOOKAHEAD=15, and also TIME_PREFIX = ^; still looks at the second timestamp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf:

[monitor:LogFile]
index = test_index
sourcetype = sourcetype_new
source = host1

props.conf

[sourcetype_new]
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 15
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=host1 sourcetype=sourcetype_new *

Output:

Time                                -  Event
2016/05/27 06:29:18       - 2016/05/27 06:30; 2016/05/27 06:29:18 Test1 :Service1
2016/05/27 05:24:16       - 2016/05/27 05:30; 2016/05/27 05:24:16 Test2 :Service2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/First-instance-of-timestamp/m-p/273937#M190219</guid>
      <dc:creator>mirsmehdi</dc:creator>
      <dc:date>2020-09-29T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: First instance of timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/First-instance-of-timestamp/m-p/273938#M190220</link>
      <description>&lt;P&gt;Try adding &lt;CODE&gt;TIME_FORMAT = %Y/%m/%d %H:%M&lt;/CODE&gt; to your sourcetype_new stanza.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 12:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/First-instance-of-timestamp/m-p/273938#M190220</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-05-27T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: First instance of timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/First-instance-of-timestamp/m-p/273939#M190221</link>
      <description>&lt;P&gt;Also keep in mind  2016/05/27 06:30 is 16 characters, so you might want to change your max_timestamp_lookahead to 16. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/First-instance-of-timestamp/m-p/273939#M190221</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2020-09-29T09:48:13Z</dc:date>
    </item>
  </channel>
</rss>

