Add README
This commit is contained in:
parent
4f02522166
commit
60ba7ad89c
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Fail2ban Analyze
|
||||||
|
|
||||||
|
Analyze fail2ban logs to find most common ip's and plot histogram of access rates.
|
||||||
|
|
||||||
|
## Example usage
|
||||||
|
Plot the histogram of the access hits
|
||||||
|
```
|
||||||
|
zcat /var/log/fail2ban.log* | ./fail2ban-analyze.py histogram
|
||||||
|
```
|
||||||
|
Rank IPs by bans, first 20 results
|
||||||
|
```
|
||||||
|
zcat /var/log/fail2ban.log* | ./fail2ban-analyze.py rank 4 --only-bans --count 20
|
||||||
|
```
|
||||||
|
Rank all IPs by bans, clobber by first 2 subnets
|
||||||
|
```
|
||||||
|
zcat /var/log/fail2ban.log* | ./fail2ban-analyze.py rank 2 --only-bans --count 20
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue