<?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 VPN count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/VPN-count/m-p/465456#M131141</link>
    <description>&lt;P&gt;Hi - We want to get users connected in 1 hour. When a user connects we get event_id="globalprotectgateway-auth-succ" in logs and when they disconnect then event_id is event_id="globalprotectgateway-logout-succ" . Each login in and logout should be counted as 1 event per hour but sometimes user just remains logged in and there is no logout even in that case we want the user to be counted as logged in user since they haven't logged out. &lt;/P&gt;

&lt;P&gt;(index=firewall OR index=cloud_firewall) eventtype="pan_system" log_subtype="globalprotect" sourcetype="pan:system"  ( event_id="globalprotectgateway-auth-succ" OR event_id="globalprotectgateway-logout-succ" OR  "globalprotectportal-gencookie-succ")  | eval logins = strftime(_time,"%H") | transaction user startswith="globalprotectgateway-auth-succ" endswith= "globalprotectgateway-logout-succ"  |   stats values(user), distinct_count(user) by  logins&lt;/P&gt;

&lt;P&gt;This works fine with login and logout for every 60 mins but if there is a user session that has not logged out then that user doesnt get counted in hourly user count. &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:51:16 GMT</pubDate>
    <dc:creator>dmenon</dc:creator>
    <dc:date>2020-09-30T04:51:16Z</dc:date>
    <item>
      <title>VPN count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/VPN-count/m-p/465456#M131141</link>
      <description>&lt;P&gt;Hi - We want to get users connected in 1 hour. When a user connects we get event_id="globalprotectgateway-auth-succ" in logs and when they disconnect then event_id is event_id="globalprotectgateway-logout-succ" . Each login in and logout should be counted as 1 event per hour but sometimes user just remains logged in and there is no logout even in that case we want the user to be counted as logged in user since they haven't logged out. &lt;/P&gt;

&lt;P&gt;(index=firewall OR index=cloud_firewall) eventtype="pan_system" log_subtype="globalprotect" sourcetype="pan:system"  ( event_id="globalprotectgateway-auth-succ" OR event_id="globalprotectgateway-logout-succ" OR  "globalprotectportal-gencookie-succ")  | eval logins = strftime(_time,"%H") | transaction user startswith="globalprotectgateway-auth-succ" endswith= "globalprotectgateway-logout-succ"  |   stats values(user), distinct_count(user) by  logins&lt;/P&gt;

&lt;P&gt;This works fine with login and logout for every 60 mins but if there is a user session that has not logged out then that user doesnt get counted in hourly user count. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/VPN-count/m-p/465456#M131141</guid>
      <dc:creator>dmenon</dc:creator>
      <dc:date>2020-09-30T04:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: VPN count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/VPN-count/m-p/465457#M131142</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;concurrency&lt;/CODE&gt; command.  See here for an example similar to your use-case which you should be able to adapt:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/319585/how-to-graph-the-number-of-active-sessions-over-ti.html"&gt;https://answers.splunk.com/answers/319585/how-to-graph-the-number-of-active-sessions-over-ti.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 20:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/VPN-count/m-p/465457#M131142</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-04-01T20:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: VPN count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/VPN-count/m-p/465458#M131143</link>
      <description>&lt;P&gt;see my previous answer:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/811217/concurrent-active-vpn-sessions-on-a-timechart.html"&gt;https://answers.splunk.com/answers/811217/concurrent-active-vpn-sessions-on-a-timechart.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 01:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/VPN-count/m-p/465458#M131143</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-02T01:17:20Z</dc:date>
    </item>
  </channel>
</rss>

