juanluisbaptiste / docker-otrs

The unofficial Znuny/OTRS Ticketing System docker image
https://www.juanbaptiste.tech/category/otrs
GNU Lesser General Public License v3.0
173 stars 101 forks source link

all logs not going to stdout/stderr #71

Closed JakeDEvans closed 4 years ago

JakeDEvans commented 4 years ago

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!!

juanluisbaptiste commented 4 years ago

Hi,

Logs are being redirected to stdout, what are you missing ?

JakeDEvans commented 4 years ago

supervisord services are not logging to stdout for me

juanluisbaptiste commented 4 years ago

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.

JakeDEvans commented 4 years ago

exactly, no logs from httpd, rsyslog, crond, or sendmail

juanluisbaptiste commented 4 years ago

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.

juanluisbaptiste commented 4 years ago

Finally I had some time to work on this, now cron and httpd correctly send their ouput to stdout. Thanks for the link.