# Filebeat JSON string

**URL:** <https://discuss.elastic.co/t/filebeat-json-string/182052>\
**Category:** Beats\
**Created:** [May 21, 2019, 3:33pm UTC](https://discuss.elastic.co/t/filebeat-json-string/182052 "2019-05-21T15:33:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NFhbar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nfhbar/32/45851_2.png) [@NFhbar](https://discuss.elastic.co/u/NFhbar)\
**Post date:** [May 21, 2019, 3:33pm UTC](https://discuss.elastic.co/t/filebeat-json-string/182052/1 "2019-05-21T15:33:00Z")

</div>

I have a filebeat configuration as follows:

```auto
filebeat.yml: |-
    filebeat.autodiscover:
      providers:
        - type: kubernetes
          hints.enabled: true
          templates:
            - condition:
                equals:
                  kubernetes.namespace: default
              config:
                - type: docker
                  containers.ids:
                    - "${data.kubernetes.container.id}"
                  processors:
                    decode_json_fields:
                      fields: ["message"]
                      target: ""
                      process_array: false
                      max_depth: 10
                      overwrite_keys: false
                    add_kubernetes_metadata:
                      in_cluster: true

    output.logstash:
      enabled: true
      ssl.enabled: true
      hosts: ["logstash.chargepayments.io:8751"]
      ssl.certificate_authorities: ["${path.config}/keys/ca.crt"]
      ssl.certificate: "${path.config}/keys/client.crt"
      ssl.key: "${path.config}/keys/client.key"

```

Which then sends my logs to logstash. I can see this logs in Kibana but the message is a JSON string (line 46):

 ![12%20AM](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1a54806afe4e865b528d30b30934ae09dc0165f9.png)

How can I have this field be a JSON object?

---

<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:** [June 18, 2019, 5:33pm UTC](https://discuss.elastic.co/t/filebeat-json-string/182052/2 "2019-06-18T17:33:08Z")

</div>

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