# Elastic agent fiebeat error spam

**URL:** <https://discuss.elastic.co/t/elastic-agent-fiebeat-error-spam/301206>\
**Category:** Beats\
**Tags:** docker, fleet, filebeat\
**Created:** [March 31, 2022, 2:11pm UTC](https://discuss.elastic.co/t/elastic-agent-fiebeat-error-spam/301206 "2022-03-31T14:11:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daymansiege](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daymansiege/32/103766_2.png) [@daymansiege](https://discuss.elastic.co/u/daymansiege)\
**Post date:** [March 31, 2022, 2:11pm UTC](https://discuss.elastic.co/t/elastic-agent-fiebeat-error-spam/301206/1 "2022-03-31T14:11:11Z")

</div>

Hello!

I am trying to setup Elastic Agent to monitor Kubernetes cluster (Azure).  
I have successfully installed and configured agents using [this guide](https://www.elastic.co/guide/en/fleet/8.1/running-on-kubernetes-managed-by-fleet.html) (had to change image version to 8.1.1 as 8.1.2 does not exist)

But ther is a problem, thousands of errors flrom filebeat `"Error extracting container id - source value does not contain matcher's logs_path '/var/lib/docker/containers/'."` at `add_kubernetes_metadata/matchers.go`.  
I guess it's related to [this issue](https://github.com/elastic/beats/issues/27216) and default docker metadata enabled by default.  
I ssh-ed to running agent and indeed found this processors enabled in filebeat:  
In my case at `/usr/share/elastic-agent/data/elastic-agent-7f30bb/install/filebeat-8.1.1-linux-x86_64/filebeat.yml`

```auto
processors:
  - add_host_metadata:
      when.not.contains.tags: forwarded
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~

```

As I understand, AKS runs containerd, so `/var/lib/docker/containers/` is empty, hence the error.  
Is there any way to disable those default processors and avoid errors spam?

Thank you!

---

<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 28, 2022, 4:12pm UTC](https://discuss.elastic.co/t/elastic-agent-fiebeat-error-spam/301206/2 "2022-04-28T16:12:07Z")

</div>

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