<?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: Why is the timestamp showing up in the future on some sourcetypes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369886#M67115</link>
    <description>&lt;P&gt;Hi naidusadanaia, thanks for your effort all are in the same location. still we could see data being ingested in future time stamp. Kindly guide me to fix the issue. &lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2018 17:25:27 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2018-01-02T17:25:27Z</dc:date>
    <item>
      <title>Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369882#M67111</link>
      <description>&lt;P&gt;Hi Team,  Currently we are having issue for certain sourcetype the indexed events are with the future time stamp. The problem is with Symantec logs source that are forwarded from third party device called tap server to the heavy forwarder and then it gets indexed to the indexer instances.   &lt;/P&gt;

&lt;P&gt;When we run the below query, we could see that data are being ingested in future time instead of actual Geographic time. &lt;/P&gt;

&lt;P&gt;earliest=@d latest=@d+1d sourcetype=symantec:tap*&lt;/P&gt;

&lt;P&gt;Props.conf details :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[symantec:tap:incidents]
SHOULD_LINEMERGE = false
TIME_PREFIX=time
MAX_TIMESTAMP_LOOKAHEAD=27
KV_MODE = json
TRUNCATE = 0

[symantec:tap:incidentevents]
SHOULD_LINEMERGE = false
FIELDALIAS-event_host = tap_host as event_host
EVAL-file_name = lower('file.name')
TIME_PREFIX=log_time
MAX_TIMESTAMP_LOOKAHEAD=27
KV_MODE = json
TRUNCATE = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note : we had removed " DATETIME_CONFIG = CURRENT" from above props.conf details, so will that be a problem.  Kindly guide me how to correct the future time stamp issue. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 16:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369882#M67111</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-01-02T16:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369883#M67112</link>
      <description>&lt;P&gt;Are all the servers are in same timezone ?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 16:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369883#M67112</guid>
      <dc:creator>naidusadanala</dc:creator>
      <dc:date>2018-01-02T16:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369884#M67113</link>
      <description>&lt;P&gt;Hopefully this document helps &lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:HandlingEventsTimeStampedInTheFuture"&gt;https://wiki.splunk.com/Community:HandlingEventsTimeStampedInTheFuture&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 16:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369884#M67113</guid>
      <dc:creator>naidusadanala</dc:creator>
      <dc:date>2018-01-02T16:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369885#M67114</link>
      <description>&lt;P&gt;It's considered a Best Practice to specify the &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; attribute for every sourcetype in your props.conf file.  You may also want to consider using the &lt;CODE&gt;TZ&lt;/CODE&gt; attribute if the event time stamp does not include a time zone.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 17:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369885#M67114</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-01-02T17:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369886#M67115</link>
      <description>&lt;P&gt;Hi naidusadanaia, thanks for your effort all are in the same location. still we could see data being ingested in future time stamp. Kindly guide me to fix the issue. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 17:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369886#M67115</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-01-02T17:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369887#M67116</link>
      <description>&lt;P&gt;Hi richgalloway, thanks for your effort on this,  we are getting the below events details after executing the query. Currently system time is 12:37 PM EST whereas _time shows as 5:13:01.490 PM, so how to correct the props.conf to fix this issue. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1/2/18
5:13:01.490 PM  
{   [-] 
     actual_action:  Left alone 
     actual_action_idx:  4  
     agent_version:  14.0.3752.1000 
     atp_host:   10.x.x.x   
     data_source_url_domain:    
     device_ip:  10.x.x.x   
     device_name:    node01 
     device_time:    2018-01-02T17:08:28.000Z   
     device_uid:     d41db0f9-4f98-484d-92b3-ca03e6a33d46   
     domain_name:    test.com   
     external_ip:   
     file:  {   [+] 
    }   
     host_name:  node01 
     incident:   2daf1330-ef75-11e7-fb05-0000000000e1   
     internal_ip:    10.x.x.x   
     local_host_mac:     00-05-9a-3c-7a-00  
     log_name:   epmp_incident-2018-01-02/event 
     log_time:   2018-01-02T17:13:01.490Z   
     no_of_viruses:  1  
     sep_installed:  true   
     source:     Real Time Scan 
     threat:    {   [+] 
    }   
     type_id:    4123   
     user_name:  user1  
     uuid:   2ffcd120-efe0-11e7-f1d4-000000004810   
     virus_def:  2018-01-01 rev. 003    
     virus_name:     XXX.XXXXX  
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me what TIME_FORMAT should be used based on the above events and shall I include TZ = EDT along with other props.conf stanza details.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 17:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369887#M67116</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-01-02T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369888#M67117</link>
      <description>&lt;P&gt;Given &lt;CODE&gt;TIME_PREFIX=log_time&lt;/CODE&gt;, Splunk is using 2018-01-02T17:13:01.490Z as the event time, but is probably ignoring the time zone specifier, which would explain the 5-hour difference.  &lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = log_time:\s+
TIME_FORMAT = %Y-%m-%dT%H:%H:%S.%3N%Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;TZ&lt;/CODE&gt; shouldn't be needed since the time zone is given in the timestamp.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 19:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369888#M67117</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-01-02T19:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369889#M67118</link>
      <description>&lt;P&gt;Hi richgalloway, thanks for your effort on this, actually I had tried to test this by ingesting the sample data in to the indexer instance via GUI  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Settings--&amp;gt;Add Data --&amp;gt; Upload --&amp;gt;select source--&amp;gt;setsourcetype--&amp;gt; "symantec:tap:incidentevents" 
 timestamp --&amp;gt; Advanced 
Timezone --&amp;gt; "Auto"
Timestampformat --&amp;gt;"%Y-%m-%dT%H:%H:%S.%3N%Z" 
Time stamp Preffix -&amp;gt; log_time:\s+
Lookhead --&amp;gt; 27 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By following the above steps, we could see that the index time is changed to the current time zone  but  at the same time I am unable to match the  log_time filed in the events with the index time.&lt;/P&gt;

&lt;P&gt;Example : &lt;BR /&gt;
_time:  1/4/18 5:26:52.000 AM and log_time: 2018-01-02T17:13:01.490Z  field in the events are not matching .  &lt;/P&gt;

&lt;P&gt;If we remove the Timestampformat --&amp;gt;"%Y-%m-%dT%H:%H:%S.%3N%Z"  and  make changes Time stamp prefix = log_time  then I could see that _time:  1/2/18  5:13:01.490 PM and log_time: 2018-01-02T17:13:01.490Z .&lt;/P&gt;

&lt;P&gt;Is there a possibility that we can match _time value and log_time in the event field value with the current time zone.&lt;/P&gt;

&lt;P&gt;Kindly guide me on this please. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:29:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369889#M67118</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369890#M67119</link>
      <description>&lt;P&gt;If your last statement - "If we remove the Timestampformat --&amp;gt;"%Y-%m-%dT%H:%H:%S.%3N%Z" and make changes Time stamp prefix = log_time then I could see that _time: 1/2/18 5:13:01.490 PM and log_time: 2018-01-02T17:13:01.490Z " - is correct then you have found the solution.  The two timestamps you give are equivalent.  If you need to make them into the exact same format try &lt;CODE&gt;strftime(_time,"%Y-%m-%dT%H:%M:%S.%3N%Z")&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369890#M67119</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T17:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369891#M67120</link>
      <description>&lt;P&gt;Hey but In that case we are unable to match the _time value and log_time in the event field value with the current time.  &lt;/P&gt;

&lt;P&gt;Our requirement is that we want _time should have current time and the same time should match the log_time value in the event field.  Is there a possibility to do this.&lt;/P&gt;

&lt;P&gt;Kindly guide me on this.&lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369891#M67120</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T17:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the timestamp showing up in the future on some sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369892#M67121</link>
      <description>&lt;P&gt;Why do you want the log_time to match the current time?  The event happened when it happened and that is not necessary "now".  _time is always the event time, unless you replace it with something like &lt;CODE&gt;eval _time=now()&lt;/CODE&gt; (which you probably don't need to do).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 15:34:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-timestamp-showing-up-in-the-future-on-some/m-p/369892#M67121</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-01-04T15:34:50Z</dc:date>
    </item>
  </channel>
</rss>

