Compare commits

...

2 Commits

Author SHA1 Message Date
Oliver Smith 449d46fb3e Sort log files with -V
Make sure log.12 comes after log.2, so the date range isn't wrong.
2023-08-30 17:30:39 +02:00
Oliver Smith 14fe911e7d Filter more bots 2023-08-30 17:28:54 +02:00
1 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@ cd "$ACCESS_LOG_DIR"
rm -f "$TEMP"
FILES=$(ls -1 access.log*)
FILES=$(ls -1 access.log* | sort -V)
cat_log() {
case "$1" in
@ -41,8 +41,10 @@ for file in $FILES; do
cat_log "$file" \
| grep "/packages/osmocom" \
| grep -v "Mozilla" \
| grep -v Wget \
| grep -v MJBot \
| grep -v PhxBot \
| grep -v Turnitin \
| grep -v Wget \
| grep "\.$format HTTP" \
>> "$TEMP"
done