# ElasticsearchException Error message

**URL:** <https://community.graylog.org/t/elasticsearchexception-error-message/26308>\
**Category:** Graylog Central (peer support)\
**Tags:** elastic\
**Created:** [October 27, 2022, 8:25am UTC](https://community.graylog.org/t/elasticsearchexception-error-message/26308 "2022-10-27T08:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessio.dapelo](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@alessio.dapelo](https://community.graylog.org/u/alessio.dapelo)\
**Post date:** [October 27, 2022, 8:25am UTC](https://community.graylog.org/t/elasticsearchexception-error-message/26308/1 "2022-10-27T08:25:13Z")

</div>

Good morning everyone  
I wanted to ask for support in identifying and resolving the cause of errors I receive in Indexer Failures

The error is as follows:

\*\* 1.  
ElasticsearchException [Elasticsearch exception [type = illegal\_argument\_exception, reason = mapper [v] cannot be changed from type [date] to [keyword]]]

\*\*2.  
Lubuntu 22.04.1  
Graylog 4.3.8  
Java OpenJDK 17.0.4  
Elasticsearch OSS 7.10.2

The machine is installed on the Virtualbox 6.1.38 virtual platform  
Installed for a month, it has never presented errors to date  
From this morning I receive the report highlighted in point \*\* 1

No particular settings have been made with respect to the basic installation except to customize ram and cpu for JAVA

What can it depend on?

Thanks for taking the time

---

<div class="post-metadata">

**Author:** ![ihe](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@ihe](https://community.graylog.org/u/ihe)\
**Post date:** [October 27, 2022, 9:29am UTC](https://community.graylog.org/t/elasticsearchexception-error-message/26308/2 "2022-10-27T09:29:04Z")

</div>

As I read the error message, you are trying to ingest something into a field of type timestamp which is a keyword and not a timestamp.  
Elastic guesses the type of a field (if not configured) by the first arriving message after a rotation of an index. I would assume, that your index rotated and one filed looked (at least for elastic) somehow like a timestamp. Some of your following messages where not, so elastic didn’t take them.  
To fix the behavior read the section “[Custom index mappings](https://docs.graylog.org/docs/elasticsearch)” in the Graylog docs.  
As a quick fix you might rotate your index and hope the first message is of type keyword again.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [November 10, 2022, 9:29am UTC](https://community.graylog.org/t/elasticsearchexception-error-message/26308/3 "2022-11-10T09:29:50Z")

</div>

Closed on November 10, 2022, 9:29am UTC

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