I'm trying to get Fail2Ban working with the Confluence Server Docker Container and I've been following documentation: - https://confluence.atlassian.com/doc/using-fail2ban-to-limit-login-attempts-216433031.html.
In the documentation it states that the access log for Confluence is located at /var/log/httpd/confluence-access.log. When I access the running docker container and look for that log file, it's not there. The directory /var/log/httpd is there but there is no log file in there.
When I do a "lsof | grep .log" I can't see any open log files called "confluence-access.log".
Do I need to turn on access logging or something? Has anyone been able to get fail2ban working with the Confluence Server Docker Container?
Here is my compose file if that helps: -
Hello @Dempers,
Welcome to Atlassian Community! It's nice to have you.
The article you shared mentioned that you need to point to a known log file, as the Common Configuration listed is only an example. According to the prerequisites:
Requires Python 2.4 or higher to be installed
Requires Apache Reverse Proxy to be installed
Needs a specific file to follow, which means your Apache instance needs to log your Confluence access to a known logfile. You should adjust the configuration below appropriately.
I hope that's clear, but let me know if you have any further issues.
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.