goaccess conf for fail2ban logs ?

Created on 13 Aug 2020  路  3Comments  路  Source: allinurl/goaccess

Hello everyone,

I'm a bit stuck on the way to configure goaccess to read the fail2ban logs that have this format/syntax :

2020-08-13 18:57:11,326 fail2ban.actions [10357]: NOTICE [firewall] Ban ww.xx.yy.zz

Can't figure out the log-format (tried various combinations related to %d %t %^ %^ %^ %^ %^ %h syntax).

Could you help :) ?

Thanks in advance.

Sincerely,

lodattime format question

All 3 comments

The solution is to carefully respect the spaces quantity :) besides some tricks as :

18:57:11,326 -> %t,%^

Thanks

You can try:

goaccess fail2ban.log --log-format='%d %t,%^ %U %^ %^ %^ %v %h' --date-format=%Y-%m-%d --time-format=%T --http-protocol=no --http-method=no --ignore-panel=OS --ignore-panel=BROWSERS

Closing this, feel free to reopen it if needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

g33kphr33k picture g33kphr33k  路  3Comments

SergioDG-YCC picture SergioDG-YCC  路  3Comments

deosha picture deosha  路  3Comments

domainoverflow picture domainoverflow  路  3Comments

Gill-Bates picture Gill-Bates  路  3Comments