summaryrefslogtreecommitdiff
path: root/openbsd/frontends/scripts/sitestats.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-01-29 09:38:26 +0000
committerPaul Buetow <paul@buetow.org>2022-01-29 09:38:26 +0000
commitc3aa5b7ae9974d407a538d492989eadcd52b16c2 (patch)
tree4737774496ad1ab91f70e3e28393480e7dde21ba /openbsd/frontends/scripts/sitestats.sh
parent3df0e3a86d6cfe22b4ff47db98a96f346308f38c (diff)
rename
Diffstat (limited to 'openbsd/frontends/scripts/sitestats.sh')
-rw-r--r--openbsd/frontends/scripts/sitestats.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsd/frontends/scripts/sitestats.sh b/openbsd/frontends/scripts/sitestats.sh
new file mode 100644
index 0000000..892cf22
--- /dev/null
+++ b/openbsd/frontends/scripts/sitestats.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];'