<?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 How to get active VPN Sessions Cisco ASA Logs with Datamodel? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-active-VPN-Sessions-Cisco-ASA-Logs-with-Datamodel/m-p/349618#M103489</link>
    <description>&lt;P&gt;Hello together,&lt;/P&gt;

&lt;P&gt;I probe to get the active session count from our asa logs per minute.&lt;BR /&gt;
I created a datamodel (CASA) which contains the username and also the &lt;CODE&gt;session_duration&lt;/CODE&gt; field if the session is closed.&lt;BR /&gt;
A session can only timeout after 15 minutes, if no packet arrives by the vpn gateway.&lt;BR /&gt;
Also, a session can be active over years, so the correlation from session start and logout events are not possible.&lt;/P&gt;

&lt;P&gt;Actually i had this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats 
estdc(ASA.Username) as UsrC
count(ASA.session_duration) as LogC
from datamodel=CASA where (nodename = ASA.VPN)
groupby _time, host
prestats=false span=15m | eval "Active Sessions"=UsrC - LogC


time  | host     | UsrC | LogC | Active Sessions
23:00 | vpnhost1 | 103  | 15   | 88
23:15 | vpnhost1 | 99   | 15   | 84
23:30 | vpnhost1 | 85   | 11   | 74
23:45 | vpnhost1 | 82   | 11   | 71
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think the solution would be that every minute he count and dedup the field ASA.Username for the last 15 minutes.&lt;BR /&gt;
But actually, I have no idea to solve this.&lt;/P&gt;

&lt;P&gt;Did anyone have a solution to my problem or need additional information to help?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2018 13:22:38 GMT</pubDate>
    <dc:creator>ronpestler1</dc:creator>
    <dc:date>2018-01-30T13:22:38Z</dc:date>
    <item>
      <title>How to get active VPN Sessions Cisco ASA Logs with Datamodel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-active-VPN-Sessions-Cisco-ASA-Logs-with-Datamodel/m-p/349618#M103489</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;

&lt;P&gt;I probe to get the active session count from our asa logs per minute.&lt;BR /&gt;
I created a datamodel (CASA) which contains the username and also the &lt;CODE&gt;session_duration&lt;/CODE&gt; field if the session is closed.&lt;BR /&gt;
A session can only timeout after 15 minutes, if no packet arrives by the vpn gateway.&lt;BR /&gt;
Also, a session can be active over years, so the correlation from session start and logout events are not possible.&lt;/P&gt;

&lt;P&gt;Actually i had this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats 
estdc(ASA.Username) as UsrC
count(ASA.session_duration) as LogC
from datamodel=CASA where (nodename = ASA.VPN)
groupby _time, host
prestats=false span=15m | eval "Active Sessions"=UsrC - LogC


time  | host     | UsrC | LogC | Active Sessions
23:00 | vpnhost1 | 103  | 15   | 88
23:15 | vpnhost1 | 99   | 15   | 84
23:30 | vpnhost1 | 85   | 11   | 74
23:45 | vpnhost1 | 82   | 11   | 71
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think the solution would be that every minute he count and dedup the field ASA.Username for the last 15 minutes.&lt;BR /&gt;
But actually, I have no idea to solve this.&lt;/P&gt;

&lt;P&gt;Did anyone have a solution to my problem or need additional information to help?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 13:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-active-VPN-Sessions-Cisco-ASA-Logs-with-Datamodel/m-p/349618#M103489</guid>
      <dc:creator>ronpestler1</dc:creator>
      <dc:date>2018-01-30T13:22:38Z</dc:date>
    </item>
  </channel>
</rss>

