<?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: How to fix a timestamp issue for Symantec logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327152#M60760</link>
    <description>&lt;P&gt;It seems like the timestamp extraction is setup (based on props.conf entry) to take time starting from &lt;CODE&gt;time:\s&lt;/CODE&gt;, but it may not be working as it appear towards end of a large events. What the number of character into the event your time field appears?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 20:02:34 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-12-04T20:02:34Z</dc:date>
    <item>
      <title>How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327151#M60759</link>
      <description>&lt;P&gt;Hi All, Currently we are facing an problem in time stamp for a Symantec log data. &lt;BR /&gt;
Problem: When we search with the below query, we could see that the splunk _time field is different from the event's "time" field.&lt;/P&gt;

&lt;P&gt;Query details:&lt;/P&gt;

&lt;P&gt;index=sem sourcetype="symantec:tap:incidents"  time="2017-12-04T17:19:06.606Z"&lt;/P&gt;

&lt;P&gt;Event detail:&lt;/P&gt;

&lt;P&gt;12/4/17&lt;BR /&gt;
12:26:52.000 PM &lt;BR /&gt;
{   [-] &lt;BR /&gt;
     tap_host:   10.140.37.7&lt;BR /&gt;&lt;BR /&gt;
     tap_incident_id:    104649 &lt;BR /&gt;
     deviceUid: [   [+] &lt;BR /&gt;
    ]&lt;BR /&gt;&lt;BR /&gt;
     device_time:    2017-12-04T17:19:06.606Z&lt;BR /&gt;&lt;BR /&gt;
     domainId:  [   [+] &lt;BR /&gt;
    ]&lt;BR /&gt;&lt;BR /&gt;
     event_count:    6&lt;BR /&gt;&lt;BR /&gt;
     filehash:  [   [+] &lt;BR /&gt;
    ]&lt;BR /&gt;&lt;BR /&gt;
     first_event_seen:   2017-12-04T16:30:08.000Z&lt;BR /&gt;&lt;BR /&gt;
     last_event_seen:    2017-12-04T17:10:37.000Z&lt;BR /&gt;&lt;BR /&gt;
     log_name:   epmp_incident-2017-12-04/incident&lt;BR /&gt;&lt;BR /&gt;
     priority_level:     1&lt;BR /&gt;&lt;BR /&gt;
     recommended_action:     If this site is not business critical, consider adding it to the Blacklist. Otherwise, consider creating a sinkhole server in your DNS to block the site.&lt;BR /&gt;&lt;BR /&gt;
     state:  1&lt;BR /&gt;&lt;BR /&gt;
     summary:    Multiple malicious behaviors have been detected from xxxx.sharepoint.com.&lt;BR /&gt;&lt;BR /&gt;
     time:   2017-12-04T17:19:06.606Z&lt;BR /&gt;&lt;BR /&gt;
     updated:    2017-12-04T17:19:07.193Z&lt;BR /&gt;&lt;BR /&gt;
     uuid:   3ba258e0-d917-11e7-e89d-00000000005a&lt;BR /&gt;&lt;BR /&gt;
}&lt;BR /&gt;
Show as raw text&lt;BR /&gt;
eventtype = nix_errors  error host =    splunk01.xxxx.com source =  symantec_tap sourcetype =   symantec:tap:incidents&lt;/P&gt;

&lt;P&gt;From the Event Action, I could see that in the event time field "2017-12-04T17:19:06.606Z" and in the _time field as "2017-12-04 12:26:52" for the same event, "_time" is not equal to "time".&lt;/P&gt;

&lt;P&gt;_time is being calculated based on when it was indexed instead of when it was an event.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Props.conf details&lt;/STRONG&gt;:  We have placed this configuration in Heavy forwarder where the data first reaches the splunk then gets ingested into indexer. &lt;/P&gt;

&lt;P&gt;[symantec:tap:incidents]&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
TIME_PREFIX=time:\s&lt;BR /&gt;
TIME_FORMAT=%FT%T.%3N&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=32&lt;BR /&gt;
TZ=EDT&lt;/P&gt;

&lt;P&gt;Question :&lt;/P&gt;

&lt;P&gt;How to make the _time field be the same as the time field ?&lt;/P&gt;

&lt;P&gt;Kindly guide me on this. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327151#M60759</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T17:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327152#M60760</link>
      <description>&lt;P&gt;It seems like the timestamp extraction is setup (based on props.conf entry) to take time starting from &lt;CODE&gt;time:\s&lt;/CODE&gt;, but it may not be working as it appear towards end of a large events. What the number of character into the event your time field appears?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 20:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327152#M60760</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-04T20:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327153#M60761</link>
      <description>&lt;P&gt;This is what @somesoni2 is referring to &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD=32&lt;/CODE&gt; this is set too low and therefore Splunk never reaches the correct time stamp.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 20:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327153#M60761</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-12-04T20:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327154#M60762</link>
      <description>&lt;P&gt;Hi somesoni2, thanks for your effort, but could you please guide me how much value should be set in-order to correlate the _time stamp with the event time field. &lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 08:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327154#M60762</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-12-05T08:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327155#M60763</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/212420"&gt;@Hemnaath&lt;/a&gt;, Is there a difference between device_time and time?&lt;/P&gt;

&lt;P&gt;device_time: 2017-12-04T17:19:06.606Z &lt;BR /&gt;
             time: 2017-12-04T17:19:06.606Z &lt;BR /&gt;
If not you can just switch to device_time&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=device_time:\s
MAX_TIMESTAMP_LOOKAHEAD=128
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;time:&lt;/CODE&gt; data is pushed towards the end of your event and you seem to have couple of unexpanded JSON Nodes like deviceUid and filehash etc. So it is better you fetch from the first time field which gives the correct time for your event.&lt;BR /&gt;
For Time Stamp Lookahead you can try some higher number like 128,1024 etc depending on how many characters including whitespaces you might have in your data prefixing timestamp to be extracted.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327155#M60763</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T17:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327156#M60764</link>
      <description>&lt;P&gt;Hi Niketnilay, thanks for your effort  on this, I will update the props.conf with the above mentioned stanza but I am not sure about how/ from where to calculate the value for MAX_TIMESTAMP_LOOKAHEAD=128 from the events. Kindly guide me on this.  &lt;/P&gt;

&lt;P&gt;[symantec:tap:incidents]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
FIELDALIAS-event_host = tap_host as event_host&lt;BR /&gt;
KV_MODE = json&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
TIME_PREFIX=device_time:\s&lt;BR /&gt;
TIME_FORMAT=%FT%T.%3N&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=128&lt;BR /&gt;
TZ=EDT&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327156#M60764</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327157#M60765</link>
      <description>&lt;P&gt;Hi Niketnilay, hey I tried the above stanza what you had mentioned in your comment but it did not work. I am getting the same output, so can you please guide me to fix this issue.&lt;/P&gt;

&lt;P&gt;index=sem sourcetype="symantec:tap:incidents"&lt;/P&gt;

&lt;P&gt;Event details captured after changing the props.conf&lt;/P&gt;

&lt;P&gt;12/5/17&lt;BR /&gt;
11:05:28.000 PM &lt;BR /&gt;
{   [-] &lt;BR /&gt;
     atp_host:   10.x.x.x&lt;BR /&gt;&lt;BR /&gt;
     atp_incident_id:    104656 &lt;BR /&gt;
     deviceUid: [   [+] &lt;BR /&gt;
    ]&lt;BR /&gt;&lt;BR /&gt;
     device_time:    2017-12-06T04:03:08.713Z&lt;BR /&gt;&lt;BR /&gt;
     domainId:  [   [+] &lt;BR /&gt;
    ]&lt;BR /&gt;&lt;BR /&gt;
     event_count:    1&lt;BR /&gt;&lt;BR /&gt;
     first_event_seen:   2017-12-05T09:49:58.118Z&lt;BR /&gt;&lt;BR /&gt;
     last_event_seen:    2017-12-05T09:49:58.118Z&lt;BR /&gt;&lt;BR /&gt;
     log_name:   epmp_incident-2017-12-06/incident&lt;BR /&gt;&lt;BR /&gt;
     priority_level:     1&lt;BR /&gt;&lt;BR /&gt;
     recommended_action:     Consider blacklisting the site. In addition, you may need to investigate the source of the exposure to see if further action is required.&lt;BR /&gt;&lt;BR /&gt;
     state:  1&lt;BR /&gt;&lt;BR /&gt;
     summary:    Malicious domain &lt;A href="http://www.xxxx.com" target="_blank"&gt;www.xxxx.com&lt;/A&gt; detected &lt;BR /&gt;
     time:   2017-12-06T04:03:08.713Z&lt;BR /&gt;&lt;BR /&gt;
     updated:    2017-12-06T04:03:08.950Z&lt;BR /&gt;&lt;BR /&gt;
     uuid:   5e89b190-da3a-11e7-d301-000000000061   &lt;/P&gt;

&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327157#M60765</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T17:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327158#M60766</link>
      <description>&lt;P&gt;Hi All, Can anyone guide me on this, how to make the _time field be the same as the time field in the event.&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 12:30:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327158#M60766</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-12-06T12:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327159#M60767</link>
      <description>&lt;P&gt;Hi All, still facing the issue, unable to make the _time field be the same as the time field in the event. &lt;/P&gt;

&lt;P&gt;Kindly guide me on this.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 14:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327159#M60767</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-12-08T14:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327160#M60768</link>
      <description>&lt;P&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; is relative to the position determined by &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;, so the initial setting of 32 should not have been too low to be valid.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = &amp;lt;integer&amp;gt;
* Specifies how far (in characters) into an event Splunk should look for a
  timestamp.
* This constraint to timestamp extraction is applied from the point of the
  TIME_PREFIX-set location.
* For example, if TIME_PREFIX positions a location 11 characters into the
  event, and MAX_TIMESTAMP_LOOKAHEAD is set to 10, timestamp extraction will
  be constrained to characters 11 through 20.
* If set to 0, or -1, the length constraint for timestamp recognition is
  effectively disabled.  This can have negative performance implications
  which scale with the length of input lines (or with event size when
  LINE_BREAKER is redefined for event splitting).
* Defaults to 150 (characters).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jan 2018 17:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327160#M60768</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-03T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix a timestamp issue for Symantec logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327161#M60769</link>
      <description>&lt;P&gt;The event as you posted it is in &lt;CODE&gt;syntax highlighted&lt;/CODE&gt; view, not &lt;CODE&gt;raw&lt;/CODE&gt;, so the patterns you used in your props.conf are likely incorrect.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=time":\s*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above is based on my assumption that your raw data actually looks more like &lt;CODE&gt;"time": "&amp;lt;timestamp&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If that doesn't work please add the raw event, instead of the syntax highlighted representation.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 17:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-a-timestamp-issue-for-Symantec-logs/m-p/327161#M60769</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-03T17:05:20Z</dc:date>
    </item>
  </channel>
</rss>

