From 8c9f93d0e913c1f3ee8973b157592580de5a4742 Mon Sep 17 00:00:00 2001 From: Rhys Smith Date: Thu, 29 Sep 2016 17:04:44 -0400 Subject: [PATCH] Add login count per user for Test IdP in monthly stats output --- utilities/stats-generate.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utilities/stats-generate.sh b/utilities/stats-generate.sh index 05d6963d..c8746219 100755 --- a/utilities/stats-generate.sh +++ b/utilities/stats-generate.sh @@ -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 @@ -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"