-
Notifications
You must be signed in to change notification settings - Fork 2k
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
How to generate apache access log in php image: 7.4-apache #1174
Comments
php/8.0/buster/apache/Dockerfile Lines 84 to 88 in 541ab0e
Because docker logs are read from |
Thank you very much for the reply, in that case do I run the commands in the Dockerfile? |
Since it is already logging access to stdout, you can just get it with |
I managed to solve the problem as follows: docker run -v /var/log/lumen:/var/www/html/storage/logs --log-driver gelf --log-opt gelf-address=udp://:12201 -d -p "8080:80 " --name ms-products --network devnet As I'm running an application in lumen in this container I chose to use logstash using the input file to capture error logs and gelf to capture apache's access log. My logstash configuration file to read log files generated by lumen is:
My configuration file for apache access log listening:
|
Dear, I would like to clear a doubt with the community.
I am deploying a staging environment and would like to implement observability to collect application logs and would like to collect apache access logs but I noticed that the php:7.4-apache image does not generate access log when I use tail -f /var/ log/apache2/access.log has no output, I would like to know how to activate this feature in the image, could you help me?
The text was updated successfully, but these errors were encountered: