<div dir="ltr">OK, thank you</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 23, 2022 at 9:47 AM Sergey A. Osokin <<a href="mailto:osa@freebsd.org.ru">osa@freebsd.org.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Julian,<br>
<br>
hope you're doing well.<br>
<br>
On Sat, Jan 22, 2022 at 03:22:40PM -0600, Julian Brown wrote:<br>
> Currently I run Nginx as a reverse proxy in a Docker container.<br>
> <br>
> FROM nginx<br>
> <br>
> ENV DEBIAN_FRONTEND noninteractive<br>
> <br>
> ... Details hidden ...<br>
> <br>
> EXPOSE 80<br>
> EXPOSE 443<br>
> <br>
> CMD nginx -g 'daemon off;'<br>
> <br>
> We are wanting to use Graylog, and have it for our other containers. So I<br>
> want to now use it for Nginx. Graylog is like Syslog.<br>
> <br>
> I went to follow this guide:<br>
> <br>
> <a href="https://github.com/ronlut/graylog-content-pack-nginx-docker" rel="noreferrer" target="_blank">https://github.com/ronlut/graylog-content-pack-nginx-docker</a><br>
> <br>
> It recommends we symbolically link the logs to stdout/stderr (which is<br>
> already part of the docker container) and it then uses this language (see<br>
> the bottom of the the README.md at github):<br>
> <br>
> Run<br>
> <br>
> Now, when your logs are collected by docker from stdout & stderr, you can<br>
> run your docker using this command:<br>
> <br>
> docker run --log-driver=gelf --log-opt<br>
> gelf-address=udp://<GraylogIP>:12401 <ImageName> <Command><br>
> <br>
> for example:<br>
> <br>
> docker run --log-driver=gelf --log-opt<br>
> gelf-address=udp://<GraylogIP>:12401 busybox echo Hello Graylog<br>
> <br>
> <<a href="https://github.com/ronlut/graylog-content-pack-nginx-docker#screenshots" rel="noreferrer" target="_blank">https://github.com/ronlut/graylog-content-pack-nginx-docker#screenshots</a>>Has<br>
> anyone had any experience with this? Or understand this last set of steps?<br>
<br>
Since it's not related to nginx indirect, I'd recommend to raise a<br>
question or an issue for the project on GH, i.e.<br>
<a href="https://github.com/ronlut/graylog-content-pack-nginx-docker/issues/new/choose" rel="noreferrer" target="_blank">https://github.com/ronlut/graylog-content-pack-nginx-docker/issues/new/choose</a><br>
<br>
Hope that helps.<br>
<br>
--<br>
Sergey A. Osokin<br>
_______________________________________________<br>
nginx mailing list -- <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
To unsubscribe send an email to <a href="mailto:nginx-leave@nginx.org" target="_blank">nginx-leave@nginx.org</a><br>
</blockquote></div>