From c3aa5b7ae9974d407a538d492989eadcd52b16c2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 29 Jan 2022 09:38:26 +0000 Subject: rename --- openbsd/frontends/scripts/httpdstats.sh | 3 --- openbsd/frontends/scripts/sitestats.sh | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 openbsd/frontends/scripts/httpdstats.sh create mode 100644 openbsd/frontends/scripts/sitestats.sh (limited to 'openbsd/frontends') diff --git a/openbsd/frontends/scripts/httpdstats.sh b/openbsd/frontends/scripts/httpdstats.sh deleted file mode 100644 index 892cf22..0000000 --- a/openbsd/frontends/scripts/httpdstats.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/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];' 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];' -- cgit v1.2.3