Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goaccess conf for fail2ban logs ? #1883

Closed
securixhk opened this issue Aug 13, 2020 · 3 comments
Closed

goaccess conf for fail2ban logs ? #1883

securixhk opened this issue Aug 13, 2020 · 3 comments

Comments

@securixhk
Copy link

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,

@securixhk
Copy link
Author

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

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

Thanks

@allinurl
Copy link
Owner

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

@allinurl
Copy link
Owner

Closing this, feel free to reopen it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants