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

Commit

Permalink
Add Test IdP top 10 to monthly stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Sep 27, 2016
1 parent cdff509 commit cfb6f66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utilities/stats-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ testidplogincount=$(zgrep "^$javasearchterm" $logslocation/test-idp/idp-audit* |
# And to how many unique SPs?
testidpspcount=$(zgrep "^$javasearchterm" $logslocation/test-idp/idp-audit* | grep "sso/browser" | cut -f 4 -d "|" | sort | uniq | wc -l | awk '{ printf ("%'"'"'d\n", $0) }')

# 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)


#
# Test SP stats
#
Expand Down Expand Up @@ -458,6 +462,8 @@ else
msg+="\n-----\n"
msg+="Test IdP usage:\n"
msg+="-> $testidplogincount logins to $testidpspcount SPs.\n"
msg+="\nTop 10 SPs logged into:\n"
msg+="$testidptoptenspsbycount\n"
msg+="\n-----\n"
msg+="Test SP usage:\n"
msg+="-> $testsplogincount logins from $testspidpcount IdPs.\n"
Expand Down

0 comments on commit cfb6f66

Please sign in to comment.