# Filebeat Autodiscover Issue

**URL:** <https://discuss.elastic.co/t/filebeat-autodiscover-issue/269970>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 13, 2021, 7:17am UTC](https://discuss.elastic.co/t/filebeat-autodiscover-issue/269970 "2021-04-13T07:17:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielc/32/78486_2.png) [@danielc](https://discuss.elastic.co/u/danielc)\
**Post date:** [April 13, 2021, 7:17am UTC](https://discuss.elastic.co/t/filebeat-autodiscover-issue/269970/1 "2021-04-13T07:17:47Z")

</div>

Some errors occurred when I had below filebeat config. How can I fix the issue?

`org.elasticsearch.index.mapper.MapperParsingException: object mapping for [json] tried to parse field [json] as object, but found a concrete value`

```auto
  filebeat.yml: |-
    filebeat.autodiscover:
      providers:
        - type: kubernetes
          node: ${NODE_NAME}
          hints.enabled: true
          hints.default_config:
            type: container
            paths:
              - /var/log/containers/*.log
            multiline.pattern: '^[[:space:]]+(\bat\b|\.{3})|^Caused by:'
            multiline.negate: false
            multiline.match: after
            processors:
              - add_kubernetes_metadata:
                  host: ${NODE_NAME}
                  matchers:
                  - logs_path:
                      logs_path: "/var/log/containers/"
              - decode_json_fields:
                  fields: ["message"]
                  target: "json"
                  process_array: false
                  max_depth: 1
                  add_error_key: true

```

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [April 13, 2021, 8:19am UTC](https://discuss.elastic.co/t/filebeat-autodiscover-issue/269970/2 "2021-04-13T08:19:04Z")

</div>

Would you mind sharing the sample log that failed processing?

---

<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:** [May 11, 2021, 10:19am UTC](https://discuss.elastic.co/t/filebeat-autodiscover-issue/269970/3 "2021-05-11T10:19:40Z")

</div>

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