Reporting

Need to pull the report of weekwise VPN users connected for past 19 weeks

deepaksreepadma
New Member

index=juniper host="XXXXXXX" | stats count by user | stats count as Users
This query gives output of total number of users connection for the whole time period.
Need help to pull the report for last three months with shows weekwise user data?

Tags (1)
0 Karma

to4kawa
Ultra Champion

sample:

| makeresults count=2
| streamstats count
| eval _time=if(count=2,relative_time(_time,"-3month"),relative_time(_time,"@d"))
| makecontinuous span=1d _time
| eval user=mvindex(split("ABC",""),random()%3)
| timechart span=1d count by user

| timewrap 1w

recommend:

index=juniper host="XXXXXXX"
| timechart span=1d count by user
| timewrap 1w

use appropriate time picker.

0 Karma

shivanshu1593
Builder

Try this. It should give you the required data.

index=juniper host="XXXXXXX" earliest=-90d latest=now() | timechart span=1w count by user

Thank you,
Shiv
###If you found the answer helpful, kindly consider upvoting/accepting it as the answer as it helps other Splunkers find the solutions to similar issues###
0 Karma

to4kawa
Ultra Champion

I don't know juniper log. What kind of log is it?

how about timechart span=1w?

0 Karma

shivanshu1593
Builder

@to4kawa, it contains the logs of your Virtual Private Network a.k.a VPN. Like which user is connecting to your organizations network via VPN, how many users are connected. Then VPNs are divided region wise, so you get different VPN usage analysis statistics region wise.

Thank you,
Shiv
###If you found the answer helpful, kindly consider upvoting/accepting it as the answer as it helps other Splunkers find the solutions to similar issues###
0 Karma

to4kawa
Ultra Champion

thanks @shivanshu1593
I wanted to make sure the questioner could respond.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...