Reporting

How to create a report that shows percentage change with successful logins per day?

bluescape360
New Member

new splunk user: trying to create a report that shows percentage change with successful logins per day

example: i have a field that shows successful logins, but there are several records in a day, so I do bucket _time span=1d. put all the records in one total number count. How can I show the change for the next day?

day 1 : 60 successful login
day 2: 100 successful login
day 3: 30 successful login

there is a 60% change from day 1 to day2, How can I chart that change? show a percentage?

Tags (2)
0 Karma

Suda
Communicator

Hello,

Could you try to use "streamstats" command?

http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/Streamstats

This is my example search command.

index=_internal sourcetype=splunkd_access
| timechart span=1d count
| streamstats sum(count) AS prev current=f window=1
| eval count / prev * 100 - 100
| table _time count ratio

I hope it helps you.

Happy splunking!

0 Karma

moiezuddin
Explorer

How to find out the no of users who had not login per day

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...