<?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: Getting wrong timestamp in GC logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-wrong-timestamp-in-GC-logs/m-p/453354#M78528</link>
    <description>&lt;P&gt;Thanks !! this worked for me. &lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD=25&lt;/P&gt;

&lt;P&gt;I tried other options as well like removing the line with VM insformation using transform but didn't worked.&lt;/P&gt;

&lt;P&gt;Cheers!!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:55:20 GMT</pubDate>
    <dc:creator>AKG1_old1</dc:creator>
    <dc:date>2020-09-29T21:55:20Z</dc:date>
    <item>
      <title>Getting wrong timestamp in GC logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-wrong-timestamp-in-GC-logs/m-p/453352#M78526</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;we have configured to pick time stamp from the logs itself but in some cases time stamp is not present. In this case Timestamp is assigned based on VM infor in GC logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**Logs with Timestamp**
2018-10-26T10:45:22.124+0200: 8372.847: [GC [1 CMS-initial-mark: 85682K(117800K)] 86784K(127592K), 0.0016081 secs] [Times: user=0.00 sys=0.00, real=0.00 secs] 
2018-10-26T10:47:25.532+0200: 8371.639: [GC [1 CMS-initial-mark: 65392K(117800K)] 66569K(127592K), 0.0016188 secs] [Times: user=0.00 sys=0.00, real=0.00 secs] 

**Logs without Time stamp**
69985.620: [GC [PSYoungGen: 18336K-&amp;gt;1408K(18944K)] 31821K-&amp;gt;14909K(45568K), 0.0322354 secs] [Times: user=0.06 sys=0.00, real=0.03 secs] 
67891.316: [GC [PSYoungGen: 17024K-&amp;gt;928K(18944K)] 30509K-&amp;gt;14413K(45568K), 2094.1194859 secs] [Times: user=5859.78 sys=125.11, real=2094.12 secs] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX = ^&lt;/P&gt;

&lt;P&gt;In GC logs some time VM information is printed and if there is no timestamp it pick  VM time eventhough VM time is not matching with props.conf . (See attachment)&lt;BR /&gt;
 In this case eventhough logs are generated today it's displaying in year 2015. Is it possible if no timestamp  present,  assign upload time as time stamp ?&lt;/P&gt;

&lt;P&gt;See attachment.&lt;IMG src="https://community.splunk.com/storage/temp/255281-gc-logs-timestamp.png" alt="alt text" /&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-wrong-timestamp-in-GC-logs/m-p/453352#M78526</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-09-29T21:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong timestamp in GC logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-wrong-timestamp-in-GC-logs/m-p/453353#M78527</link>
      <description>&lt;P&gt;When Splunk cannot find a timestamp, it will take the timestamp from the previous event. In your case that has a bit of an odd side effect, since the first event without a timestamp, actually does contain a timestamp, but not a useful one.&lt;/P&gt;

&lt;P&gt;I'm not sure how you could prevent Splunk from using that "built on" timestamp, such that already that event would get assigned a timestamp based on the previous event. Perhaps reducing the &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; setting in props.conf could work. Setting that to 30 should be enough to capture the proper timestamps, and may (but I'm not 100% sure of the behavior here) prevent splunk from picking up that useless build timestamp further down the event.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-wrong-timestamp-in-GC-logs/m-p/453353#M78527</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-10-26T12:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong timestamp in GC logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-wrong-timestamp-in-GC-logs/m-p/453354#M78528</link>
      <description>&lt;P&gt;Thanks !! this worked for me. &lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD=25&lt;/P&gt;

&lt;P&gt;I tried other options as well like removing the line with VM insformation using transform but didn't worked.&lt;/P&gt;

&lt;P&gt;Cheers!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-wrong-timestamp-in-GC-logs/m-p/453354#M78528</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-09-29T21:55:20Z</dc:date>
    </item>
  </channel>
</rss>

