# Nginx deployment based image, forward stdout / stderr

**URL:** <https://forums.suse.com/t/nginx-deployment-based-image-forward-stdout-stderr/39436>\
**Category:** SUSE Rancher Prime\
**Created:** [November 11, 2022, 1:13pm UTC](https://forums.suse.com/t/nginx-deployment-based-image-forward-stdout-stderr/39436 "2022-11-11T13:13:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmlp1](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jmlp1](https://forums.suse.com/u/jmlp1)\
**Post date:** [November 11, 2022, 1:13pm UTC](https://forums.suse.com/t/nginx-deployment-based-image-forward-stdout-stderr/39436/1 "2022-11-11T13:13:39Z")

</div>

We have a nginx-proxy deployment which creates logs which as far as I can see are symlinks stdout and stderr files

![image](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/e/e05b2594cfe03ff416e7924c150b3bc9da3ee3bd.png)

They are showing clearly in Rancher UI Logs console, but we want to forward that ouput to a fluentd pod which is already successfully collecting logs from other pods running int the same namespace, tried different approaches even using the Banzai Marketplace app but not joy

Rancher UI \> Deployment workload | Pod | three dots | \> View Logs

 ![image](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/1/13d1a96be7b7956e5cafd57c8a477a31fdf635f2.png)

Any thoughts about how to accomplish this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![DaveyH](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/daveyh/32/8793_2.png) [@DaveyH](https://forums.suse.com/u/DaveyH)\
**Post date:** [November 17, 2022, 12:21pm UTC](https://forums.suse.com/t/nginx-deployment-based-image-forward-stdout-stderr/39436/2 "2022-11-17T12:21:11Z")

</div>

I think you have to look into the stdout plugin of Fluentd. [stdout - Fluentd](https://docs.fluentd.org/output/stdout)  
Have you tried that one?

---

<div class="post-metadata">

**Author:** ![jmlp1](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jmlp1](https://forums.suse.com/u/jmlp1)\
**Post date:** [November 18, 2022, 6:19pm UTC](https://forums.suse.com/t/nginx-deployment-based-image-forward-stdout-stderr/39436/3 "2022-11-18T18:19:29Z")

</div>

Thanks DaveyH,  
I tried with forward and http without too much luck, but I will give a try to the stdout plugin

---

<div class="post-metadata">

**Author:** ![jmlp1](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jmlp1](https://forums.suse.com/u/jmlp1)\
**Post date:** [November 20, 2022, 3:28am UTC](https://forums.suse.com/t/nginx-deployment-based-image-forward-stdout-stderr/39436/4 "2022-11-20T03:28:27Z")

</div>

Found the solution with syslog output plugin and protocol UDP

Nginx uses UDP packets when redirecting logs to a syslog server, fluentd forward plugin was just not dealing with them until I changed to use syslog and UDP output instead, once done packages were redirected to fluentd selected output, for this test was a mongodb logs database, but they could be send to splunk or any other centralised login option
