# Mapper \[user\_agent.version\] cannot be changed from type \[text\] to \[keyword\] How to disable this warining?

**URL:** https://discuss.elastic.co/t/mapper-user-agent-version-cannot-be-changed-from-type-text-to-keyword-how-to-disable-this-warining/305638
**Category:** Beats
**Tags:** filebeat
**Created:** [May 25, 2022, 7:09pm UTC](https://discuss.elastic.co/t/mapper-user-agent-version-cannot-be-changed-from-type-text-to-keyword-how-to-disable-this-warining/305638 "2022-05-25T19:09:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sebastian\_Pacuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastian_pacuk/32/99794_2.png) [@Sebastian\_Pacuk](https://discuss.elastic.co/u/Sebastian_Pacuk)
#### Post date: [May 25, 2022, 7:09pm UTC](https://discuss.elastic.co/t/mapper-user-agent-version-cannot-be-changed-from-type-text-to-keyword-how-to-disable-this-warining/305638/1 "2022-05-25T19:09:23Z")

</div>

I'm newbie to elasticsearch. What I want to do is to gather logs with filebeat from kubernetes cluster and send them to elasticsearch. My filebeat config file looks like this:

`filebeat.yml: |  
filebeat.inputs:

- type: container  
paths:
  - /var/log/containers/\*.log  
processors:
  - add\_kubernetes\_metadata:  
host: ${NODE\_NAME}  
matchers:
    - logs\_path:  
logs\_path: "/var/log/containers/"`

I am outputting to elasticsearch,but I cant show the config. I don't have access to elasticsearch instance I only have access to kibana where I can add index pattern to match logs from elasticsearch. I see logs from file beat where it's written that:

> "Failed to parse mapping [\_doc]: mapper [user\_agent.version] cannot be changed from type [text] to [keyword]","caused\_by":{"type":"illegal\_argument\_exception","reason":"mapper [user\_agent.version] cannot be changed from type [text] to [keyword]"}}

What I found in docs is this: [https://www.elastic.co/.../7.17/user-agent-processor.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/user-agent-processor.html?fbclid=IwAR0YOLeXSHPHR-DyJPdo0Dj2GF5B91Dfm3WFrtnE1kPgtgPJz6oNi6s79S8) , but I can't find how to disable this processor or even better how to omit this one field which is causing the error.

I would highly appreciate any help.

---

<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 22, 2022, 9:09pm UTC](https://discuss.elastic.co/t/mapper-user-agent-version-cannot-be-changed-from-type-text-to-keyword-how-to-disable-this-warining/305638/2 "2022-06-22T21:09:58Z")

</div>

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