I am using ELK version 8.12.0. I have a field called
'request.querystring.username'
and that field has different data types keyword and boolean in different indices.
Why the same field has the same different data types in different indices?
How to list the indices which contains the boolean data type for that field?
How to fix the data type as keyword for the same field in the future?
linux_admin:
'request.querystring.username'
GET index_name/_mapping
or
GET index_name/_mapping/field/request
either create component template or just recreate the index template
again set the mapping for that particular object request
"request": {
"properties":{
"querystring": {
"properties": {
"username" : {
"type":"keyword"
}
}
}
}
}
and reindex the data after completely deleting the existing index
dadoonet
(David Pilato)
Category updated
August 6, 2024, 12:45pm
4
Hi @kishorkumar I have a template named kong-index-template
How to update this template with the required mappings, please?
linux_admin:
kong-index-template
get all the information of index that you are using and to update follow the documentation
and then follow the documentation : [(Index templates | Elasticsearch Guide [8.15] | Elastic ]((Index templates | Elasticsearch Guide [8.15] | Elastic )
system
(system)
Closed
September 6, 2024, 6:26am
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.