<?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 find concurrent VPN users per hour? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496420#M138339</link>
    <description>&lt;P&gt;Did you get a good query working for your Pulse Secure VPN? I'm working on this as well. Everything I try gives me lower numbers than what the appliance shows in the concurrent users.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 16:36:28 GMT</pubDate>
    <dc:creator>cnmccown</dc:creator>
    <dc:date>2020-03-19T16:36:28Z</dc:date>
    <item>
      <title>How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496416#M138335</link>
      <description>&lt;P&gt;We are using pulse secure as our VPN solution and I'm looking to build a search that tracks concurrent users per hour. Using my account as a test, I see the first event starts with, "Primary authentication successful for*" and ends with "Closed connection*" so based on that I created the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo 
| transaction startswith="Primary authentication successful for*" endswith="Closed connection*"
| eval count=1 
| timechart per_hour(eval(count)) as "Concurrent Users"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this a valid search for concurrent users?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496416#M138335</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-09-30T04:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496417#M138336</link>
      <description>&lt;P&gt;One solution is to use the &lt;CODE&gt;concurrency&lt;/CODE&gt; command. You'll need to calculate your duration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
| eval duration=(VPN session duration in minutes)
| eval new_start = _time - duration
| concurrency start=new_start duration=duration output=overlap
| timechart span=1h max(overlap)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change your timechart span to fit your need.&lt;/P&gt;

&lt;P&gt;Here is the &lt;CODE&gt;concurrency&lt;/CODE&gt; man page: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Concurrency"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Concurrency&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 16:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496417#M138336</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-03-16T16:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496418#M138337</link>
      <description>&lt;P&gt;Thx for the reply and info. The transaction command automatically created the duration field with values so I tried the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo 
| transaction startswith="Primary authentication successful for*" endswith="Closed connection*" 
| eval new_start = _time - duration 
| concurrency start=new_start duration=duration output=overlap 
| timechart span=1h max(overlap)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but the number of concurrent users is too low and not lining up&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 18:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496418#M138337</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-03-16T18:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496419#M138338</link>
      <description>&lt;P&gt;The &lt;CODE&gt;transaction&lt;/CODE&gt; command is not good for large volumes, and I have had issues with it. Some people will recommend using the &lt;CODE&gt;stats&lt;/CODE&gt; command like this, assuming you have a unique identifier to group by:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search here)
| eval StartTime=if(match(_raw, "start_pattern"), _time, null())
| eval EndTime=if(match(_raw, "end_pattern"), _time, null())
| stats earliest(StartTime) as StartTime latest(EndTime) as EndTime by vpnID
| eval elapsed=EndTime-StartTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;At this point, you should be able to get a nice tabular view that can help with verifying your data, prior to moving on with &lt;CODE&gt;concurrency&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 18:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496419#M138338</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-03-16T18:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496420#M138339</link>
      <description>&lt;P&gt;Did you get a good query working for your Pulse Secure VPN? I'm working on this as well. Everything I try gives me lower numbers than what the appliance shows in the concurrent users.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 16:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496420#M138339</guid>
      <dc:creator>cnmccown</dc:creator>
      <dc:date>2020-03-19T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496421#M138340</link>
      <description>&lt;P&gt;@cnmccown - I did not as I get lower numbers as well&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 19:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496421#M138340</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-03-19T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496422#M138341</link>
      <description>&lt;P&gt;Alright - thanks for the response. I'll let you know if I get a query worked out.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 19:02:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496422#M138341</guid>
      <dc:creator>cnmccown</dc:creator>
      <dc:date>2020-03-19T19:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496423#M138342</link>
      <description>&lt;P&gt;Would greatly appreciate it. &lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 19:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496423#M138342</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-03-19T19:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496424#M138343</link>
      <description>&lt;P&gt;So I actually found a pretty simple solution for this.&lt;BR /&gt;
You can enable "Event" logs from the VPN appliance to by syslogged (or Universal Forwarded) to your Splunk instance. Part of the Event logs are that every hour on the hour, it will generate a log entry for number of concurrent users and number of NCP connections. Now, I can just look for the log entry every hour and plot the concurrent users. The Pulse Secure App for Splunk automatically field extracted this information for me.&lt;/P&gt;

&lt;P&gt;Very simple query for a line chart:&lt;BR /&gt;
    index=XXX concurrent_users="*" | table _time, concurrent_users&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496424#M138343</guid>
      <dc:creator>cnmccown</dc:creator>
      <dc:date>2020-09-30T04:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent VPN users per hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496425#M138344</link>
      <description>&lt;P&gt;Awesome - thx so much!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 11:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-VPN-users-per-hour/m-p/496425#M138344</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-03-25T11:54:25Z</dc:date>
    </item>
  </channel>
</rss>

