<p>I am using loki-stack helm chart I am doing following configuration to disable kube-system namespace logs in promtail so that loki doesnt use it</p>
<pre><code>promtail:
  enabled: true
  #
  # Enable Promtail service monitoring
  # serviceMonitor:
  #   enabled: true
  #
  # User defined pipeline stages
  pipelineStages:
    - docker: {}
    - drop:
        source: namespace
        expression: &quot;kube-.*&quot;
</code></pre>
<p>Please help in solving inside container this values are not getting updated</p>
<p>The configuration is already mentioned above</p>

shreysway
<p>I had the same issue with this configuration and it seems like the <code>pipelineStages</code> at this level is being ignored. I solved my problem by moving it to <code>snippets</code>.</p>
<pre><code>promtail:
  enabled: true
  config:
    snippets:
      pipelineStages:
        - docker: {}
        - drop:
            source: namespace
            expression: &quot;kube-.*&quot;
</code></pre>
<p>This worked for me and I hope it helps someone else who might run into the same problem. For more details, please check out this link: <a href="https://github.com/grafana/helm-charts/blob/main/charts/promtail/values.yaml" rel="nofollow noreferrer">https://github.com/grafana/helm-charts/blob/main/charts/promtail/values.yaml</a></p>
