fluent-plugin-mysql-replicator
fluent-plugin-mysql-replicator copied to clipboard
How to set “index”: “not_analyzed” While push data from Mysql using mysql-replicator
I working on EFK, I push message from mysql to elsaticsearch using mysql-replicator, if i push data to elasticsearch add type field in each field
For Example:
"mappings": {
"chat_chennaibox": {
"properties": {
"message": {
"type": "string"
}
}
}
}
I need to add "index": "not_analyzed" in message field
For Example:
"mappings": {
"chat_chennaibox": {
"properties": {
"message": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
Suggest me How to do this? this is td-agent configration File http://pastebin.com/bBAgAgvz
Please set mapping on elasticsearch. https://www.elastic.co/guide/en/elasticsearch/guide/current/mapping-intro.html https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html
@y-ken I try to update my mapping for existing index , but its throw error follow this link https://discuss.elastic.co/t/mapping-problem-while-update-mapping-in-existing-index/52858 I posted my question in elasticsearch.