fluent-plugin-mysql-replicator icon indicating copy to clipboard operation
fluent-plugin-mysql-replicator copied to clipboard

How to set “index”: “not_analyzed” While push data from Mysql using mysql-replicator

Open Git-Rajkumar opened this issue 8 years ago • 2 comments

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

Git-Rajkumar avatar Jun 14 '16 12:06 Git-Rajkumar

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 avatar Jun 14 '16 13:06 y-ken

@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.

Git-Rajkumar avatar Jun 15 '16 12:06 Git-Rajkumar