# Kubernetes log monitoring with log-ingest-rule-hierarchy (back to front)

**URL:** <https://community.dynatrace.com/t/kubernetes-log-monitoring-with-log-ingest-rule-hierarchy-back-to-front/52177>\
**Category:** Container platforms\
**Tags:** log-ingestion, container, log-configuration, kubernetes\
**Created:** [June 20, 2025, 6:36am UTC](https://community.dynatrace.com/t/kubernetes-log-monitoring-with-log-ingest-rule-hierarchy-back-to-front/52177 "2025-06-20T06:36:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [June 20, 2025, 6:36am UTC](https://community.dynatrace.com/t/kubernetes-log-monitoring-with-log-ingest-rule-hierarchy-back-to-front/52177/1 "2025-06-20T06:36:26Z")

</div>

Hi,&nbsp;  
I’m currently implementing the Kubernetes log streaming via the “logs module” in Dynatrace. Doing this since we have recently moved from Full Stack to Application + Kubernetes monitoring and logs can’t be collected in this format.

I’ve got it working this isn’t the issue, the problem I’m facing is that the&nbsp;log-ingest-rule-hierarchy is back to front.

> **[Stream Kubernetes logs with Dynatrace Log Module](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-ingestion/lma-log-ingestion-via-oa/lma-logs-from-kubernetes)**
>
> Dynatrace supports collecting log data from Kubernetes container orchestration systems via OneAgent Log Module or Kubernetes Log Module.

"Log ingest rules can be defined on environment scope but also on more fine-grained level like Kubernetes cluster. The matching hierarchy is as follows:

1. Host configuration rules;
2. Kubernetes cluster configuration rules;
3. Host group configuration rules;
4. Environment configuration rules "

The problem I am facing is that on deployment of the logging module, a Kubernetes cluster level rule is automatically created which has a default rule of collect all (every log on the cluster).

This then overwrites all other configurations (in particular the Environment) due to&nbsp;log-ingest-rule-hierarchy.&nbsp; This is back to front from the way that the Full Stack / OneAgent log collection works.

I do not want to have to create individual configurations per cluster as this is counter intuitive and a significant time-wasting exercise of massive #dynatoil.

Has anyone faced this? got any idea?&nbsp; or am I going to have to spend countless hours with dynatrace support on this.

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [December 16, 2025, 3:19pm UTC](https://community.dynatrace.com/t/kubernetes-log-monitoring-with-log-ingest-rule-hierarchy-back-to-front/52177/2 "2025-12-16T15:19:09Z")

</div>

Hello,&nbsp;[@gopher](https://community.dynatrace.com/user/10565)!

How this issue went further? Did you make any progress?

Thank you for any feedback!

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [December 16, 2025, 10:02pm UTC](https://community.dynatrace.com/t/kubernetes-log-monitoring-with-log-ingest-rule-hierarchy-back-to-front/52177/3 "2025-12-16T22:02:07Z")

</div>

HI&nbsp;[@Michal\_Gebacki](https://community.dynatrace.com/user/44566)&nbsp;,  
Unfortunately, not, we have raised this through our accounts team back to PO and that’s about it unfortunately.  
Just another painful, half thought out implementation that adds to the list of reasons why we should continue using alternate logging methods other than Dynatrace (which are already in place).&nbsp; &nbsp;  
&nbsp;Thanks

---

<div class="post-metadata">

**Author:** ![mattb0m](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@mattb0m](https://community.dynatrace.com/u/mattb0m)\
**Post date:** [January 29, 2026, 4:53pm UTC](https://community.dynatrace.com/t/kubernetes-log-monitoring-with-log-ingest-rule-hierarchy-back-to-front/52177/4 "2026-01-29T16:53:50Z")

</div>

We have also noticed this behavior, which we simply consider a bug. We may apply config on the cluster level with Terraform, but this implementation is clearly harmful.

---

<div class="post-metadata">

**Author:** ![mattb0m](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@mattb0m](https://community.dynatrace.com/u/mattb0m)\
**Post date:** [January 29, 2026, 5:06pm UTC](https://community.dynatrace.com/t/kubernetes-log-monitoring-with-log-ingest-rule-hierarchy-back-to-front/52177/5 "2026-01-29T17:06:13Z")

</div>

I have opened a product idea, as that is the only suolution Support ever propose for broken features :  
[https://community.dynatrace.com/t5/Product-ideas/Correct-k8s-Log-Monitoring-module-pushing-Log-Ingest-rules-per/idi-p/293878#M56192](https://community.dynatrace.com/post/293878#M56192)
