- elasticsearch에서 index template 삽입 및 삭제 방법
- PUT http://localhost:9200/_template/{templateName}
index template 삭제{ "order": 0, "index_patterns": [ "myIndex-*" ], "settings": { "index": { "number_of_shards": "1", "number_of_replicas": "0", "refresh_interval": "1s" } }, "mappings": { "properties": { "user_id": { "type": "long" }, "user_name": { "type": "keyword" }, "timestamp": { "type": "long" }, "action": { "type": "keyword" } } } }
- DELETE http://localhost:9200/_template/{templateName}
- index template 삽입