homarr icon indicating copy to clipboard operation
homarr copied to clipboard

Add the ability to store access logs to a file

Open PenguinDLL opened this issue 1 year ago • 5 comments

Description

Utilities like fail2ban could be using in conjunction with Homarr if it were possible to print failed login attempts in a log file.

At the moment, failed login attempts are not even in the logs (unless I missconfigured my container) whereas successful login attempts are written to the logs.

So the idea would be

  1. add a "failed login attempt from ip xxx.xxx.xxx.xxx" when some host fails to login
  2. add a config file where we can define an option such as
[log]
drivers = console,file
logfile = /app/log/homarr.log

That way we don't have to use docker log and can easily configure a fail2ban filter and jail using the defined logfile.

Strictly speaking, the logfile is not even necessary if docker is configured to output logs to syslog or journald. Having at least the failed login attempts inside the logs would be great for security.

Please tick the boxes

PenguinDLL avatar Jul 11 '24 12:07 PenguinDLL

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

github-actions[bot] avatar Jul 11 '24 12:07 github-actions[bot]

Hello 👋, this issue has been open for 60 days without activity. We mark issues to help prioritise and close dead issues. Can you confirm that this issue is still relevant on the latest version? I'll remove the stale label as soon as there is further activity on this issue. Thank you 🙏

github-actions[bot] avatar Sep 13 '24 17:09 github-actions[bot]

Would also really appreciate this feature!

HeyItsJono avatar Oct 24 '24 11:10 HeyItsJono

👍

appiekap653 avatar Nov 06 '24 15:11 appiekap653

Hello 👋, this issue has been open for 60 days without activity. We mark issues to help prioritise and close dead issues. Can you confirm that this issue is still relevant on the latest version? I'll remove the stale label as soon as there is further activity on this issue. Thank you 🙏

github-actions[bot] avatar Jan 11 '25 17:01 github-actions[bot]

Would you be happy with the change https://github.com/homarr-labs/homarr/issues/2508 (failed attempts are already logged there) If not, please add smaller requests to the issue there or create a new one https://github.com/homarr-labs/homarr/issues/new/choose

Meierschlumpf avatar Aug 04 '25 16:08 Meierschlumpf