Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Add login count per user for Test IdP in monthly stats output
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Sep 29, 2016
1 parent 78e7b10 commit 8c9f93d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utilities/stats-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ testidpspcount=$(zgrep "^$javasearchterm" $logslocation/test-idp/idp-audit* | gr
# Top 10 SPs the IdP has logged into
testidptoptenspsbycount=$(zgrep "^$javasearchterm" $logslocation/test-idp/idp-audit* | grep "sso/browser" | cut -d "|" -f 4 | sort | uniq -c | sort -nr | head -10)

# Which Test IdPs are being used, and how much?
testidplogincountbyuser=$(zgrep "^$javasearchterm" $logslocation/test-idp/idp-audit* | grep "sso/browser" | cut -d "|" -f 9 | sort | uniq -ic)


#
# Test SP stats
Expand Down Expand Up @@ -463,6 +466,8 @@ else
msg+="\n-----\n"
msg+="Test IdP usage:\n"
msg+="-> $testidplogincount logins to $testidpspcount SPs.\n"
msg+="\nLogins per test user:\n"
msg+="$testidplogincountbyuser\n"
msg+="\nTop 10 SPs logged into:\n"
msg+="$testidptoptenspsbycount\n"
msg+="\n-----\n"
Expand Down

0 comments on commit 8c9f93d

Please sign in to comment.