<?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: Multiple Timestamp Aggregation in Reports: How to have a single report for a user with the timestamp for each login/logout session? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346918#M102725</link>
    <description>&lt;P&gt;Examples are below but the goal is to be able to report (per user) login time, logout time, session duration over multiple days. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
LOGIN, LOGOUT, User, SessionId, Duration....are all extracted fields&lt;BR /&gt;
Thank you&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example of a login event&lt;/STRONG&gt;&lt;BR /&gt;
Mar 10 18:35:35  03/10/2017: 18:34:57  ns 0-PPE-0 : SSLVPN &lt;STRONG&gt;LOGIN&lt;/STRONG&gt; 17573462 0 : Context &lt;A href="mailto:JoeSmith@x.x.x.x" target="_blank"&gt;JoeSmith@x.x.x.x&lt;/A&gt; - SessionId: 43717- User JoeSmith - Client_ip x.x.x.x - Nat_ip "Mapped Ip" - Vserver x.x.x.x:443 - Browser_type "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.1439" - SSLVPN_client_type - Group(s) "N/A"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example of a logout event&lt;/STRONG&gt;&lt;BR /&gt;
Mar 10 18:50:30  03/10/2017: 18:49:52  ns 0-PPE-0 : SSLVPN &lt;STRONG&gt;LOGOUT&lt;/STRONG&gt; 17576185 0 : Context &lt;A href="mailto:JoeSmith@x.x.x.x" target="_blank"&gt;JoeSmith@x.x.x.x&lt;/A&gt; - SessionId: 43717- User JoeSmith - Client_ip x.x.x.x - Nat_ip "Mapped Ip" - Vserver x.x.x.x:443 - Start_time "03/10/2017:18:34:57 " - End_time "03/10/2017:18:49:52 " - Duration 00:14:55  - Http_resources_accessed 23 - NonHttp_services_accessed 0 - Total_TCP_connections 74 - Total_UDP_flows 0 - Total_policies_allowed 74 - Total_policies_denied 0 - Total_bytes_send 2170 - Total_bytes_recv 417916 - Total_compressedbytes_send 0 - Total_compressedbytes_recv 159514 - Compression_ratio_send 0.00% - Compression_ratio_recv 61.83% - LogoutMethod "Explicit" - Group(s) "N/A"&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:14:25 GMT</pubDate>
    <dc:creator>phillipmadm</dc:creator>
    <dc:date>2020-09-29T13:14:25Z</dc:date>
    <item>
      <title>Multiple Timestamp Aggregation in Reports: How to have a single report for a user with the timestamp for each login/logout session?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346916#M102723</link>
      <description>&lt;P&gt;We are logging information from a network security device that has multiple fields of interest. LOGIN, LOGOUT, START, and DISCONNECT messages all have unique time stamps and messages associated with a user (but a unique  id with each session). How can I have a single report for a user with the timestamp for LOGIN, LOGOUT per each session?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 16:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346916#M102723</guid>
      <dc:creator>phillipmadm</dc:creator>
      <dc:date>2017-03-13T16:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamp Aggregation in Reports: How to have a single report for a user with the timestamp for each login/logout session?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346917#M102724</link>
      <description>&lt;P&gt;Do you have unique id per message or per session or do not have unique id for correlation at all? What kind of user information do you have? Can you add some sample mocked up data? &lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346917#M102724</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-13T17:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamp Aggregation in Reports: How to have a single report for a user with the timestamp for each login/logout session?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346918#M102725</link>
      <description>&lt;P&gt;Examples are below but the goal is to be able to report (per user) login time, logout time, session duration over multiple days. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
LOGIN, LOGOUT, User, SessionId, Duration....are all extracted fields&lt;BR /&gt;
Thank you&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example of a login event&lt;/STRONG&gt;&lt;BR /&gt;
Mar 10 18:35:35  03/10/2017: 18:34:57  ns 0-PPE-0 : SSLVPN &lt;STRONG&gt;LOGIN&lt;/STRONG&gt; 17573462 0 : Context &lt;A href="mailto:JoeSmith@x.x.x.x" target="_blank"&gt;JoeSmith@x.x.x.x&lt;/A&gt; - SessionId: 43717- User JoeSmith - Client_ip x.x.x.x - Nat_ip "Mapped Ip" - Vserver x.x.x.x:443 - Browser_type "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.1439" - SSLVPN_client_type - Group(s) "N/A"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example of a logout event&lt;/STRONG&gt;&lt;BR /&gt;
Mar 10 18:50:30  03/10/2017: 18:49:52  ns 0-PPE-0 : SSLVPN &lt;STRONG&gt;LOGOUT&lt;/STRONG&gt; 17576185 0 : Context &lt;A href="mailto:JoeSmith@x.x.x.x" target="_blank"&gt;JoeSmith@x.x.x.x&lt;/A&gt; - SessionId: 43717- User JoeSmith - Client_ip x.x.x.x - Nat_ip "Mapped Ip" - Vserver x.x.x.x:443 - Start_time "03/10/2017:18:34:57 " - End_time "03/10/2017:18:49:52 " - Duration 00:14:55  - Http_resources_accessed 23 - NonHttp_services_accessed 0 - Total_TCP_connections 74 - Total_UDP_flows 0 - Total_policies_allowed 74 - Total_policies_denied 0 - Total_bytes_send 2170 - Total_bytes_recv 417916 - Total_compressedbytes_send 0 - Total_compressedbytes_recv 159514 - Compression_ratio_send 0.00% - Compression_ratio_recv 61.83% - LogoutMethod "Explicit" - Group(s) "N/A"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346918#M102725</guid>
      <dc:creator>phillipmadm</dc:creator>
      <dc:date>2020-09-29T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamp Aggregation in Reports: How to have a single report for a user with the timestamp for each login/logout session?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346919#M102726</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201402"&gt;@phillipmadm&lt;/a&gt;, looking at your sample events &lt;STRONG&gt;LOGOUT&lt;/STRONG&gt; event in itself is complete as it also has the login details for example&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Correlation Keys like - &lt;STRONG&gt;SessionId&lt;/STRONG&gt;, &lt;STRONG&gt;User&lt;/STRONG&gt;, &lt;STRONG&gt;Client_ip&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;And correlating fields like - &lt;STRONG&gt;Start_time&lt;/STRONG&gt;, &lt;STRONG&gt;End_time&lt;/STRONG&gt;, &lt;STRONG&gt;Duration&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Also like you have mentioned so many other interesting fields are also present like LogoutMethod.&lt;/P&gt;

&lt;P&gt;You can add &lt;STRONG&gt;LOGOUT&lt;/STRONG&gt; to your base search to get only the logout event and then with override _time with Start_time and plot duration on the timechart. You can also consider using Timeline custom visualization to plot duration as Gantt Chart &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Your Base Search&amp;gt; LOGOUT
| eval Start_time=strptime(Start_time,"%m/%d/%Y:%H:%M:%S")
| eval _time=Start_time
| timechart max(Duration) as MaxDuration by User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can try various by clauses apart from User like Client_ip, SessionId and even composite key like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; eval Key=User." (SessionID:".SessionId.")"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: I have performed _time override with Start_time from your log since LOGOUT event has Logout time in the _time event by default.&lt;/P&gt;

&lt;P&gt;Finally, if you want to display all Login/Logout you can use values(Duration) and preferably stats instead of timechart. Please try this and let us know how it goes.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346919#M102726</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T13:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamp Aggregation in Reports: How to have a single report for a user with the timestamp for each login/logout session?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346920#M102727</link>
      <description>&lt;P&gt;Good to go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 18:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamp-Aggregation-in-Reports-How-to-have-a-single/m-p/346920#M102727</guid>
      <dc:creator>phillipmadm</dc:creator>
      <dc:date>2017-06-15T18:05:58Z</dc:date>
    </item>
  </channel>
</rss>

