Wanted to see the laravel nginx log to the docker container log.
Add this cmd at the bottom of the Dockerfile
CMD [ "exec su-exec nobody /usr/sbin/nginx -g 'daemon off;'" ]
Then edit default.conf of nginx
map $uri $do_log {
/ignore/this/url 0;
default 1;
}
server {
error_log /dev/stdout;
access_log /dev/stdout;
# Specify the logging configuration
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/nginx-access.log combined if=$do_log;
....
}
Now you can see the record on the Docker Container
Done.
Happy Coding …. :)
Kibana accesses the web application in port-forward. Now other developers and QA persons never wanted to show them from port-forward. Now it needs to access from the HTTP side.
So need to access the Kibana client side from Ingress
So need to modify the kibana.yaml.
After the modify the…