<p>I need to analyze the traffic to my K8s cluster (Not a Managed Cluster), so I need to export the logs.</p>
<p>NGINX logs are easy to export but NGINX Ingress Controller is new to me.</p>
<p>I am trying to find a solution on how to do this, but couldn't find it in the NGINX documentation.</p>
<p>Does anyone have an idea?</p>

AlwaysNewbie
<p>You can retrieve the logs of the <code>nginx ingress controller</code> pod by simply using the command:</p>
<pre><code>kubectl logs &lt;nginx-ingress-controller-pod&gt; -n &lt;namespace&gt;
</code></pre>
<p>If you want to export it, you just redirect the output of <code>kubectl logs</code> to a file:</p>
<pre><code>kubectl logs &lt;nginx-ingress-controller-pod&gt; -n &lt;namespace&gt; &gt; nginx-ingress-controller-pod.log
</code></pre>
<p>Would this solve your problem?</p>
