Closed JakeDEvans closed 4 years ago
Hi,
Logs are being redirected to stdout, what are you missing ?
supervisord services are not logging to stdout for me
Both otrs and database containers do log to stdout. This is an example of one of my installations:
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No messages available for sending.
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No indexing needed! Skipping...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No messages available for sending.
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | Spawning child process to fetch incoming messages from mail accounts...
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No messages available for sending.
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No indexing needed! Skipping...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 | Processing ticket escalation events ...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 | imappro.zoho.com (IMAPS)...
akam-otrs-pe-otrs-1 | IMAPS: Connection to imappro.zoho.com closed.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | imappro.zoho.com (IMAPS)...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No indexing needed! Skipping...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No messages available for sending.
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | Collecting asynchronous support data...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No messages available for sending.
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No indexing needed! Skipping...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 | No indexing needed! Skipping...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | No messages available for sending.
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 |
akam-otrs-pe-otrs-1 | Generating dashboard widgets statistics...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 | Processing ticket escalation events ...
akam-otrs-pe-otrs-1 | Done.
akam-otrs-pe-otrs-1 | No indexing needed! Skipping...
akam-otrs-pe-otrs-1 | Done.
Those are OTRS info messages taken from stdout.
exactly, no logs from httpd, rsyslog, crond, or sendmail
There's no sendmail installed, crond only prints messages when task are run (and they do print to stdout), rsyslog is what its used to print logs to stdout. The only one missing is httpd, PR welcome.
Finally I had some time to work on this, now cron and httpd correctly send their ouput to stdout. Thanks for the link.
Can you have all logs go to stdout/stderr as is the docker way?
There's a great article on how to do this, if I have time I'll work up a MR but I think you'd be able to do it faster/better.
https://advancedweb.hu/2018/07/03/supervisor_docker/
Thanks for this!!