# Json message storing with message. extension in index

**URL:** <https://discuss.elastic.co/t/json-message-storing-with-message-extension-in-index/309726>\
**Category:** Logstash\
**Tags:** elastic-agent\
**Created:** [July 15, 2022, 9:24am UTC](https://discuss.elastic.co/t/json-message-storing-with-message-extension-in-index/309726 "2022-07-15T09:24:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![harijld](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@harijld](https://discuss.elastic.co/u/harijld)\
**Post date:** [July 15, 2022, 9:24am UTC](https://discuss.elastic.co/t/json-message-storing-with-message-extension-in-index/309726/1 "2022-07-15T09:24:28Z")

</div>

Hi Team, I have small query here.  
I am sending json messag on Kafka queue and indexing the same in Elasticsearch. It is inserting properly but all the fields are storing with message.field extension. Is there any parameter do i need to include in the logstash config file to remove this message. extension.

logsstash config file -

```auto
input {
    kafka {
      bootstrap_servers => "XX.XX.XX.XX:9092"
          topics => ["logmes"]
    }
}

filter {

        json {
                source => "message"
             }
         }

output {
  elasticsearch {
    hosts => "https://XX.XX.XX.XX:9200"
    index => "tibco-app-logs"
    user => "elastic"
    password => "XXXXXXXXX"
    cacert => "/etc/logstash/elk-stack.crt.pem"
    ssl_certificate_verification => false
  }
}

```

Elasticsearch data -  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a127e1f7f2647ff0696bca7307eb2aa669620b83.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 15, 2022, 3:26pm UTC](https://discuss.elastic.co/t/json-message-storing-with-message-extension-in-index/309726/2 "2022-07-15T15:26:02Z")

</div>

Since you have not given any indication what you JSON structure is, it is impossible to say.

---

<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:** [August 12, 2022, 3:26pm UTC](https://discuss.elastic.co/t/json-message-storing-with-message-extension-in-index/309726/3 "2022-08-12T15:26:34Z")

</div>

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