# Exclude logs and metrics related to Elastic Agents running on Kubernetes

**URL:** <https://discuss.elastic.co/t/exclude-logs-and-metrics-related-to-elastic-agents-running-on-kubernetes/340645>\
**Category:** Elastic Observability\
**Created:** [August 11, 2023, 2:32pm UTC](https://discuss.elastic.co/t/exclude-logs-and-metrics-related-to-elastic-agents-running-on-kubernetes/340645 "2023-08-11T14:32:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![levitoh123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/levitoh123/32/106905_2.png) [@levitoh123](https://discuss.elastic.co/u/levitoh123)\
**Post date:** [August 11, 2023, 2:32pm UTC](https://discuss.elastic.co/t/exclude-logs-and-metrics-related-to-elastic-agents-running-on-kubernetes/340645/1 "2023-08-11T14:32:23Z")

</div>

Hi,  
I have a deployment in elastic cloud (elasticsearch and kibana) and I recently added the Kubernetes integration. Everything is running good so far, but I do find it very clunky to use. The main problem being that I am trying to monitor my kubernetes application and jobs and their logs mainly but the kubernetes integration is spamming the logs and the metrics views mainly with logs from the elastic agents which are not really necessary. Is there a way to completely filter out the logs and the metrics from anything related to the elastic agents?

I deployed the agents using the kubernetes manifest ([Run Elastic Agent on Kubernetes managed by Fleet | Fleet and Elastic Agent Guide [8.9] | Elastic](https://www.elastic.co/guide/en/fleet/current/running-on-kubernetes-managed-by-fleet.html)) and this is what the dashboards and logs look like.

 ![Screenshot 2023-08-11 at 10.21.58](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6cc7f1bf43a404e36c58bd7a7ad35aed68ec5908.png)  
On that case, all these logs are coming from elastic\_agent.metricbeat and the message is pretty much "Non-zero metrics in the last 30s" which I don't need or care about. And also some of the dashboard that provide information about memory and CPU intensive pods, they are simply showing elastic agents.  
 ![Screenshot 2023-08-11 at 10.27.02](https://us1.discourse-cdn.com/elastic/original/3X/5/3/53d228ba0c022bf83fefb516c601d6c109cc4c28.png)

Thank you in advance!
