# Elastic Agent Kubernetes Integration Logs Moniotring

**URL:** <https://discuss.elastic.co/t/elastic-agent-kubernetes-integration-logs-moniotring/327881>\
**Category:** Elastic Agent\
**Created:** [March 16, 2023, 8:40pm UTC](https://discuss.elastic.co/t/elastic-agent-kubernetes-integration-logs-moniotring/327881 "2023-03-16T20:40:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Savva\_Morozov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/savva_morozov/32/116837_2.png) [@Savva\_Morozov](https://discuss.elastic.co/u/Savva_Morozov)\
**Post date:** [March 16, 2023, 8:40pm UTC](https://discuss.elastic.co/t/elastic-agent-kubernetes-integration-logs-moniotring/327881/1 "2023-03-16T20:40:19Z")

</div>

Hello! I am using Elastic Agent on Kubernetes and I am using Kubernetes integration to capture the logs, but I would like to capture logs only from our applications and filter out the logs of Kubernetes components.  
I saw that there is a configuration option called "Condition" in the part of logs, but I've not found any documentation on how to use it. Can we use this option to choose which logs to capture?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/4/048e22407f34f6022408f8f12a5d74eba1a53c8e.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 13, 2023, 8:40pm UTC](https://discuss.elastic.co/t/elastic-agent-kubernetes-integration-logs-moniotring/327881/2 "2023-04-13T20:40:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
