elasticsearch-indices

What is the use of maintaining two aliases for a single Elastic Search Index

亡梦爱人 提交于 2021-02-10 14:18:10
问题 I have been exploring Elastic Search lately. I have been going through aliases. I see ES provides an API to create multiple aliases to a single index like below: { "actions" : [{ "add" : { "indices" : ["test1", "test2"], "alias" : "alias1" } }] } Refer: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#indices-aliases I'm wondering what is the use case of this. Won't the queries on aliases get split if an alias point to multiple indices? I have tried getting

Elasticsearch file-based index templates not showing up in “/_template” API call

五迷三道 提交于 2020-01-25 14:30:33
问题 I'm attempting to automate the usage of index templates in Elasticsearch, so I've started creating the files in the "[ES_CONFIG_DIR]/templates/" directory (http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html#config) with the proper format (sample file: http://pastebin.com/waKCBGgW). My Chef cookbook performs the following steps: 1.Create the JSON template file in the "[ES_CONFIG_DIR]/templates/tpl_misc.json" directory 2.Restart the elasticsearch service The

ElasticSearch entered “read only” mode, node cannot be altered

筅森魡賤 提交于 2019-12-08 17:38:04
问题 Something happened during the night to my ES cluster (composed of 5 data nodes, 3 master nodes). To be honest, I have no idea what happened but all the indices and data were deleted and the cluster entered a "read only" mode, possibly hacked? When trying to get Kiban running i get the following: Tried restarting kibana - it restarted, nothing changed. Tried restarting Elastic - it restarted (all nodes), nothing changed. I then had a look at the cluster settings and this is what I got: {