when I run this query and no matches aliases exist, the request returns unrelated aliases, it seems to be often elastic-cloud-logs-8. Could you help advise? Thanks.
Two questions:
Why it returns unrelated aliases? expected result is empty
How does ES server decide which alias to return if no matches are found?
when I run GET /_cat/aliases?v a lot of aliases are returned but no foo* alias in the list.
and, even filebeat-elastic-cloud-logs-8 is NOT in the result. this looks like a bug.
while this request GET /_alias/filebeat-elastic-cloud-logs-8 returns correct result, when I run GET /_cat/aliases/filebeat*?v it returns nothing. this is incorrect also.
when you run GET /_alias/foo* in your ES cluster it returns empty result. this seems right but it could be because there is no this alias filebeat-elastic-cloud-logs-8 in your cluster (I mean if you have this alias, it will wrongly returns it). Could you check if it's this case by GET /_alias/filebeat-elastic-cloud-logs-8? Thanks.
If i add any property like is_write_index => this alias is visible in
GET /_cat/aliases?v
POST /_aliases
{
"actions": [
{
"add": {
"index": "kibana_demo",
"alias": "kib_demo",
"is_write_index": true
}
}
]
}
GET /_cat/aliases?v
Output :
alias index filter routing.index routing.search is_write_index kib_demo kibana_demo - - - TRUE
The 1 created before (kibana_logs_alias) is not visible (GET /_cat/aliases?v) as it was set with no properties.
I am not sure if below can be the reason :
The alias appears without additional configurations such as filters, routing or write index settings, which is why it seems "blank" in terms of these additional settings.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.