Mailcow-dockerized: Access mail.log for grepping?

Created on 1 Apr 2019  路  3Comments  路  Source: mailcow/mailcow-dockerized

Is there a way to access mail.log for grepping (or to get similar solution)?

docker logs postfix gets very long and grep get ignored. Also older logs can't be viewed with this way.

Most helpful comment

You could also use portainer (a web based docker gui) and use it's log parsing windows on the container of your choice.

https://mailcow.github.io/mailcow-dockerized-docs/third_party-portainer/

image

All 3 comments

Hi, use another logging driver in Docker for persistent logs: https://mailcow.github.io/mailcow-dockerized-docs/firststeps-logging/

Grep is not ignored for docker-compose logs postfix. Perhaps you were using docker instead of docker-compose.

You could also use portainer (a web based docker gui) and use it's log parsing windows on the container of your choice.

https://mailcow.github.io/mailcow-dockerized-docs/third_party-portainer/

image

Many thanks for your help @sriccio + @andryyy ! :) We use now Graylog for logging within mailcow. Additionally nice thing is that we added our other serves and now the logs are now central retrievable. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

constin picture constin  路  3Comments

thannaske picture thannaske  路  3Comments

damdinsharav picture damdinsharav  路  3Comments

omexlu picture omexlu  路  3Comments

poldixd picture poldixd  路  3Comments