Fail2ban reading logs from the syslog/process/stdout of other task

I have a list of docker containers running on a server. One of the containers is (will be) fail2ban running on privileged mode. My problem right now is with passing and sharing the same volume (log file) through these containers in order for it to be written by services and read by fail2ban.

I was wondering if there's a way with fail2ban to read from a stream of data like docker logs -f apache. This would take the pain away from managing that logfile, passing it through containers, dealing with read/write locks and also figuring out how to rotate it.

2
задан 5 October 2016 в 03:51
1 ответ

Настроить докер на запись логов в syslog/журнал https://docs. docker.com/engine/admin/logging/overview/

docker run --log-driver=syslog ...
1
ответ дан 3 December 2019 в 12:38

Теги

Похожие вопросы