Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route Drupal syslog entries to stdout #5

Open
grayside opened this issue Jun 26, 2017 · 1 comment
Open

Route Drupal syslog entries to stdout #5

grayside opened this issue Jun 26, 2017 · 1 comment

Comments

@grayside
Copy link
Contributor

In docker, logs are picked up from stdout. This is how commands such as docker logs are able to present log activity. We have already got Apache and PHP error logs, but we do not have logs properly routed for applications with their own syslog facility.

Rather than use a technique such as https://www.drupal.org/project/log_stdout, let's configure the container to split off Drupal logs into a dedicated file descriptor, whether that's a standard /var/log location or explicitly stdout.

If it is a /var/log/drupal, we already know how to use symlink magic to reroute that to stdout, check out the Dockerfile.

@snpdev
Copy link

snpdev commented Jun 9, 2020

I know it's been three years, but I just took an interest in this problem. Did you settle on a resolution? My use case is Drupal running on AKS. I want to capture the Drupal log in Azure Monitor for containers, which consumes STDOUT and STDERR container logs output.

An alternative in Azure is to Create a data pipeline with the Data Collector API which pulls log updates from Blob storgage into Log Analytics, but jumping through hoops in the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants