wwfortunate
1/10/2018 - 6:10 AM

es index demo

es index demo

{
    "template": "index-*",
    "settings": {
        "index": {
            "number_of_shards": "3",
            "number_of_replicas": 1,
            "codec": "best_compression",
            "mapper": {
                "dynamic": "true"
            },
            "unassigned": {
                "node_left": {
                    "delayed_timeout": "1m"
                }
            },
            "translog": {
                "durability": "async"
            }
        }
    },
    "mappings": {
        "_default_": {
            "dynamic_templates": [
                {
                    "keyword": {
                        "mapping": {
                            "type": "{dynamic_type}",
                            "index": "false"
                        },
                        "match_mapping_type": "*",
                        "match": "*",
                        "unmatch": "*timestamp*"
                    }
                }
            ],
            "_all": {
                "enabled": false
            }
        },
        "configcenterclient": {
            "properties": {
                "functionName": {
                    "type": "keyword",
                    "index": "false"
                },
                "line": {
                    "type": "integer",
                    "index": "false"
                },
                "ip": {
                    "type": "text",
                    "index": "true"
                },
                "className": {
                    "type": "keyword",
                    "index": "false"
                },
                "language": {
                    "type": "keyword",
                    "index": "false"
                },
                "customInfo": {
                    "type": "keyword",
                    "index": "false"
                },
                "env": {
                    "type": "keyword",
                    "index": "true"
                },
                "version": {
                    "type": "keyword",
                    "index": "true"
                },
                "componentName": {
                    "type": "keyword",
                    "index": "true"
                },
                "projectName": {
                    "type": "keyword",
                    "index": "true"
                },
                "errorStack": {
                    "type": "keyword",
                    "index": "false"
                },
                "msgtype": {
                    "type": "keyword",
                    "index": "true"
                },
                "info": {
                    "type": "keyword",
                    "index": "false"
                }
            }
        }
    }
}