<div dir="ltr"><div dir="ltr">Thank you this worked perfectly. I used both server and remote ports in the logs.<div><br></div><div>Many thanks!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 13, 2022 at 11:48 AM Lucas Rolff <<a href="mailto:lucas@lucasrolff.com">lucas@lucasrolff.com</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">



<div style="overflow-wrap: break-word;">
Yes, it’s documented in <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#variables" target="_blank">http://nginx.org/en/docs/http/ngx_http_core_module.html#variables</a> 
<div><br>
</div>
<div>$remote_port is probably what you’re after.<br>
<div><br>
<blockquote type="cite">
<div>On 13 Sep 2022, at 20:24, Michael Williams <<a href="mailto:michael.glenn.williams@totalvu.tv" target="_blank">michael.glenn.williams@totalvu.tv</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Is there a way to include the request port number in each line of the access logs?
<div>I'm on Debian 11, using free NGINX downloaded.<br clear="all">
<div><br>
</div>
<div>Many thanks,</div>
<div>Michael</div>
<div dir="ltr">
<div dir="ltr">
<table cellpadding="0" cellspacing="0" style="font-size:inherit;vertical-align:-webkit-baseline-middle;font-family:Verdana">
<tbody>
<tr>
<td style="vertical-align:middle"><br>
</td>
</tr>
<tr>
<td height="30"></td>
</tr>
<tr>
</tr>
<tr>
<td height="30"></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle;font-family:Verdana;width:555.031px">
<tbody>
<tr>
<td style="vertical-align:top"></td>
<td style="text-align:right;vertical-align:top">
<table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle;font-family:Verdana;display:inline-block">
<tbody>
<tr>
<td><a href="https://www.linkedin.com/in/michael-glenn-williams-45ab23228/" style="display:inline-block;padding:0px;background-color:rgb(114,157,199)" target="_blank"><img src="https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/linkedin-icon-2x.png" alt="linkedin" height="24" style="max-width: 135px; display: block;"></a></td>
<td width="5">
<div></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>

<div></div>
</div>
_______________________________________________<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>
</div>
</blockquote>
</div>
<br>
</div>
</div>

_______________________________________________<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><img src="https://t.sidekickopen04.com/s3t/o/5/f18dQhb0S7n28bNTLVW7zKHFs1jkhdLW1_k-L-1qZM43N2TrPlL5Z0xmW4cH2872z6fYSf7_cSGl02?si=8000000020094730&pi=3215d5ec-84ea-43f9-b138-6855ecdf1d6b" alt="" style="display:none!important" height="1" width="1"><div></div></div>