<?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: Choosing the correct timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24160#M3807</link>
    <description>&lt;P&gt;Thanks. I was kind of hoping I could avoid using a regexp, since time formats may change with locales and such. Also, I don't really understand why the MAX_TIMESTAMP_LOOKAHEAD is ignored.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:40:22 GMT</pubDate>
    <dc:creator>echalex</dc:creator>
    <dc:date>2020-09-28T11:40:22Z</dc:date>
    <item>
      <title>Choosing the correct timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24156#M3803</link>
      <description>&lt;P&gt;Hi, I'm having a weird problem with recognizing timestamps. The actual timestamp looks like this:&lt;/P&gt;

&lt;P&gt;[2012-04-11 11:24:11+03:00]&lt;/P&gt;

&lt;P&gt;However, since the event itself contains the compilation time of the kernel (uname -a), Splunk will identify the date based on that, &lt;STRONG&gt;but&lt;/STRONG&gt; will pick up the time from the timestamp. So the time of day changes, but the date is constantly 2012-01-20.&lt;/P&gt;

&lt;P&gt;I've tried these settings in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 28
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
TIME_PREFIX = \[
MAX_TIMESTAMP_LOOKAHEAD = 26
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the result is still the same.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 08:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24156#M3803</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-04-11T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing the correct timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24157#M3804</link>
      <description>&lt;P&gt;Paste a sample event, please.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 09:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24157#M3804</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-04-11T09:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing the correct timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24158#M3805</link>
      <description>&lt;P&gt;Ayn,&lt;/P&gt;

&lt;P&gt;[2012-04-11 12:14:01+03:00] Linux hostname.domain.tld 2.6.18-274.18.1.el5 #1 SMP Fri Jan 20 15:11:18 EST 2012 x86_64 x86_64 x86_64 GNU/Linux&lt;/P&gt;

&lt;P&gt;The log contains other events as well, but these all get indexed using the correct timestamp.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24158#M3805</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2020-09-28T11:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing the correct timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24159#M3806</link>
      <description>&lt;P&gt;Keep the TIME_PREFIX=^\[&lt;BR /&gt;
Also set TIME_FORMAT=%Y-%m-%d %H:%M:%S%z&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24159#M3806</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T11:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing the correct timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24160#M3807</link>
      <description>&lt;P&gt;Thanks. I was kind of hoping I could avoid using a regexp, since time formats may change with locales and such. Also, I don't really understand why the MAX_TIMESTAMP_LOOKAHEAD is ignored.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Choosing-the-correct-timestamp/m-p/24160#M3807</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2020-09-28T11:40:22Z</dc:date>
    </item>
  </channel>
</rss>

