diff options
| author | Paul Buetow <paul@buetow.org> | 2022-01-28 10:03:30 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-01-28 10:03:30 +0000 |
| commit | 3df0e3a86d6cfe22b4ff47db98a96f346308f38c (patch) | |
| tree | 54dc2dc3caf93539d18e8b89d71fb504a3102949 | |
| parent | 1517187ccf057dfbd20a233aae74d6ed35bd15b4 (diff) | |
add stats script
| -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];' |
