# Object mapping for \[agent\] tried to parse field \[agent\] as object, but found a concrete value

**URL:** <https://discuss.elastic.co/t/object-mapping-for-agent-tried-to-parse-field-agent-as-object-but-found-a-concrete-value/363150>\
**Category:** Elastic Search\
**Created:** [July 15, 2024, 12:50pm UTC](https://discuss.elastic.co/t/object-mapping-for-agent-tried-to-parse-field-agent-as-object-but-found-a-concrete-value/363150 "2024-07-15T12:50:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRANJ](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@MRANJ](https://discuss.elastic.co/u/MRANJ)\
**Post date:** [July 15, 2024, 12:50pm UTC](https://discuss.elastic.co/t/object-mapping-for-agent-tried-to-parse-field-agent-as-object-but-found-a-concrete-value/363150/1 "2024-07-15T12:50:14Z")

</div>

Hi All,

I am new to ELK and we are moving our indices from ELK7 to ELK8. However, i am getting error while reindexing the existing indices

 ![error](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4b757d6ee7abceaad4bc0913bbdc2d274fbbbe51.png)  
"object mapping for [agent] tried to parse field [agent] as object, but found a concrete value"

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 15, 2024, 3:38pm UTC](https://discuss.elastic.co/t/object-mapping-for-agent-tried-to-parse-field-agent-as-object-but-found-a-concrete-value/363150/2 "2024-07-15T15:38:17Z")

</div>

Welcome!

It might be because you did not set the same mapping for both indices.

---

<div class="post-metadata">

**Author:** ![MRANJ](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@MRANJ](https://discuss.elastic.co/u/MRANJ)\
**Post date:** [July 16, 2024, 6:25am UTC](https://discuss.elastic.co/t/object-mapping-for-agent-tried-to-parse-field-agent-as-object-but-found-a-concrete-value/363150/3 "2024-07-16T06:25:09Z")

</div>

It seems indices are having different type of mapping:

Indices example 1:  
"syst-jira-apdex-2023-03" : {  
"mappings" : {  
"properties" : {  
"@timestamp" : {  
"type" : "date"  
},  
"agent" : {  
"properties" : {  
"ephemeral\_id" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256

Indices example 2:  
syst-confluence-access-2023-05-29" : {  
"mappings" : {  
"properties" : {  
"@timestamp" : {  
"type" : "date"  
},  
"agent" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},

---

<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 13, 2024, 6:26am UTC](https://discuss.elastic.co/t/object-mapping-for-agent-tried-to-parse-field-agent-as-object-but-found-a-concrete-value/363150/4 "2024-08-13T06:26:05Z")

</div>

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