Closed ghost closed 5 years ago
Can an admin please whisper to jenkins to test this PR.
In the screenshot, I ran docker with -e S6_LOGGING_SCRIPT="n20 s1000000"
which removes a timestamp because the output from thelounge already had a timestamp.
Should I close this?
@McGriddle I know this is old, but just wanted to give you an answer. The general ideology on logs has been in the past that you should handle it with docker log drivers and rules. It is an interesting concept and particularly useful for stuff like development containers where your userspace is inside of the container and you have no visibility to the host level socket. With a daemonized application though I cannot see us implementing this, especially because fail-2-ban should be running host level or in a container with host access and in turn docker logs access and is not included in this container.
logutil-service
handles logging to a file as well as logrotation.All output directly from thelounge is written to a file. Docker run output is not touched.
Logging to a file would allow fail2ban to check for failed login attempts once this code tagged in a release: https://github.com/thelounge/thelounge/pull/2247