Best regards,
Martin
--
You received this message because you are subscribed to the Google Groups "Kong" group.
To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+...@googlegroups.com.
To post to this group, send email to kong...@googlegroups.com.
Visit this group at https://groups.google.com/group/konglayer.
To view this discussion on the web visit https://groups.google.com/d/msgid/konglayer/ea5b4342-b344-424d-8d43-5522f0836acb%40googlegroups.com.
error_log logs/error.log error;
access_log logs/access.log;
To:
error_log /dev/stderr error;
access_log /dev/stdout;
2.
ln -sf /dev/stderr /usr/local/kong/logs/error.log
ln -sf /dev/stdout /usr/local/kong/logs/access.log
My docker runs with the syslog driver and works great for nginx and other types of dockers.
In both cases above I get no logging to my syslog on the server.
Any tips are welcome.
Kind regards,
Stephan
docker exec kong chmod a+rw /dev/console
I am in the process of upgrading to 0.9.6 (there is no official 0.9.7 Kong docker yet) but now get this:
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:23: nginx is already running in /usr/local/kong
FROM ...
...
...
...
RUN mkdir -p /opt/logs \
&& ln -sf /tmp/logpipe /opt/logs/api-gateway.log
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/local/bin/kong", "start", "-c", "/etc/kong/kong.conf", "--nginx-conf", "/etc/kong/custom_nginx.template"]
rm -f /tmp/logpipe
mkfifo -m 666 /tmp/logpipe
cat <> /tmp/logpipe 1>&2 &
mkdir -p /opt/logs # creates /opt/logs folder
ln -sf /tmp/logpipe /opt/logs/api-gateway.log # creates a symbolic link from the /opt/logs/api-gateway.log file to /tmp/logpipe
rm -f /tmp/logpipe # removes logpipe file
mkfifo -m 666 /tmp/logpipe # creates a pipe which is refered by the /opt/logs/api-gateway.log file.
cat <> /tmp/logpipe 1>&2 & # this line pipes everything that goes through /tmp/logpipe, which is a data stream generated by kong logging to /opt/logs/api-gateway.log (symlink), to 1>&2 (/dev/stdout and /dev/stderr).