diff options
author | Bill <bill@billserver.senders.io> | 2021-04-09 11:13:25 -0400 |
---|---|---|
committer | Bill <bill@billserver.senders.io> | 2021-04-09 11:13:25 -0400 |
commit | 4240aab3465d0fb022d4b2dc553155fd331d6d4c (patch) | |
tree | 73d8870ed62f2131f80df7f0e1aa72e7d7a05152 /stats | |
parent | 57937673ebbafe7cd81884708e8916013abff063 (diff) |
first words
Diffstat (limited to 'stats')
-rwxr-xr-x | stats/calc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stats/calc.sh b/stats/calc.sh index e0005bf..9567247 100755 --- a/stats/calc.sh +++ b/stats/calc.sh @@ -11,8 +11,8 @@ fi TODAY=$(date -Id) echo -e "Stats for day:\t$TODAY" > $OUTFILE -echo -e "Total Reqs:\t"$(grep 'OUT' ${LOGFILE} | grep "${TODAY}" | wc -l) >> $OUTFILE -echo -e "Gemlog Reads:\t"$(grep 'IN' ${LOGFILE} | grep "${TODAY}" | grep "gemlog" | grep "gmi" | wc -l) >> $OUTFILE +echo -e " Total Reqs:\t"$(grep 'OUT' ${LOGFILE} | grep "${TODAY}" | wc -l) >> $OUTFILE +echo -e " Gemlog Reads:\t"$(grep 'IN' ${LOGFILE} | grep "${TODAY}" | grep "gemlog" | grep "gmi" | wc -l) >> $OUTFILE echo "Top 5 Gemlogs" >> $OUTFILE echo "--------------" >> $OUTFILE grep "IN" ${LOGFILE} | grep "${TODAY}" | cut -f4 | grep "gemlog" | grep ".gmi" | sort | uniq -c | sort -rn | head -n5 >> $OUTFILE |