Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Setting up Fail2Ban for Confluence Server Docker Container Edited

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.

2020-01-17_7-01-50.png

When I do a "lsof | grep .log" I can't see any open log files called "confluence-access.log".

2020-01-17_6-57-52.png

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: -

https://pastebin.com/vPe4ZZTb

 

1 answer

0 votes

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,560 views 6 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you