diff options
| -rw-r--r-- | openbsd/frontends/scripts/httpdstats.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsd/frontends/scripts/httpdstats.sh b/openbsd/frontends/scripts/httpdstats.sh new file mode 100644 index 0000000..892cf22 --- /dev/null +++ b/openbsd/frontends/scripts/httpdstats.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +zgrep -h . /var/www/logs/access.log* | perl -l -n -e '@s=split / +/; next if @s!=11; $s[4]=~s|\[(\d\d)/(...)/(\d{4}):(.*)|$1 $2 $3 $4|; print join " ",@s[0,1,4,7];' |
