Files
hpr-tools/workflow/hpr_ccdn_stats.bash
2025-09-08 09:49:49 +02:00

5 lines
202 B
Bash

#!/bin/bash
yesterday="$( \date -u +%Y-%m-%d -d yesterday)"
echo -e "${yesterday}\t$( grep -Ec "${yesterday}T.*Sending request to" /home/hpr/logs/naughty-ip.txt )" >> /home/hpr/hub/hpr_ccdn_stats.tsv