<?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 Translating a defined tracking session using SPL in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Translating-a-defined-tracking-session-using-SPL/m-p/375984#M6188</link>
    <description>&lt;P&gt;How would I do this in SPL?&lt;/P&gt;

&lt;P&gt;I want to calculate a tracking session: &lt;BR /&gt;
Find an ENTER event in the log. &lt;BR /&gt;
Search forward in the log data for events after this event with the same device ID and same account ID. Sort them by date (ascending).&lt;BR /&gt;&lt;BR /&gt;
Walk through the log events in order, adding them to the session. If any of the following occurs, we stop searching:&lt;BR /&gt;&lt;BR /&gt;
If the next is more than "session timeout" (default 5 minutes) after the previous event in the session, consider the session terminated.&lt;BR /&gt;&lt;BR /&gt;
If an EXIT or TIMEOUT event occurs, consider the session terminated.&lt;BR /&gt;&lt;BR /&gt;
Find the last non-timeout event. &lt;BR /&gt;
Session duration calculation is based on the time difference between the first event and the last non-timeout event.    &lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 18:38:59 GMT</pubDate>
    <dc:creator>dwong2</dc:creator>
    <dc:date>2018-05-07T18:38:59Z</dc:date>
    <item>
      <title>Translating a defined tracking session using SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Translating-a-defined-tracking-session-using-SPL/m-p/375984#M6188</link>
      <description>&lt;P&gt;How would I do this in SPL?&lt;/P&gt;

&lt;P&gt;I want to calculate a tracking session: &lt;BR /&gt;
Find an ENTER event in the log. &lt;BR /&gt;
Search forward in the log data for events after this event with the same device ID and same account ID. Sort them by date (ascending).&lt;BR /&gt;&lt;BR /&gt;
Walk through the log events in order, adding them to the session. If any of the following occurs, we stop searching:&lt;BR /&gt;&lt;BR /&gt;
If the next is more than "session timeout" (default 5 minutes) after the previous event in the session, consider the session terminated.&lt;BR /&gt;&lt;BR /&gt;
If an EXIT or TIMEOUT event occurs, consider the session terminated.&lt;BR /&gt;&lt;BR /&gt;
Find the last non-timeout event. &lt;BR /&gt;
Session duration calculation is based on the time difference between the first event and the last non-timeout event.    &lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 18:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Translating-a-defined-tracking-session-using-SPL/m-p/375984#M6188</guid>
      <dc:creator>dwong2</dc:creator>
      <dc:date>2018-05-07T18:38:59Z</dc:date>
    </item>
  </channel>
</rss>

