Use -f option for zcat example

This commit is contained in:
Enrico Lumetti 2021-09-17 23:55:52 +02:00
parent 60ba7ad89c
commit c0bfb4b0e1
1 changed files with 3 additions and 3 deletions

View File

@ -5,13 +5,13 @@ Analyze fail2ban logs to find most common ip's and plot histogram of access rate
## Example usage ## Example usage
Plot the histogram of the access hits Plot the histogram of the access hits
``` ```
zcat /var/log/fail2ban.log* | ./fail2ban-analyze.py histogram zcat -f /var/log/fail2ban.log* | ./fail2ban-analyze.py histogram
``` ```
Rank IPs by bans, first 20 results Rank IPs by bans, first 20 results
``` ```
zcat /var/log/fail2ban.log* | ./fail2ban-analyze.py rank 4 --only-bans --count 20 zcat -f /var/log/fail2ban.log* | ./fail2ban-analyze.py rank 4 --only-bans --count 20
``` ```
Rank all IPs by bans, clobber by first 2 subnets Rank all IPs by bans, clobber by first 2 subnets
``` ```
zcat /var/log/fail2ban.log* | ./fail2ban-analyze.py rank 2 --only-bans --count 20 zcat -f /var/log/fail2ban.log* | ./fail2ban-analyze.py rank 2 --only-bans --count 20
``` ```