- Elasticsearch:
2.1 - Timezone:
+0800 - Index:
nginx-2015.12.18 - Current Time:
2015-12-18 16:08
According to doc following query will resolve to index nginx-2015.12.18
curl -XGET 'localhost:9200/<nginx-{now/d}>/_search'
But, in reality it gives
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"<nginx-now","index":"<nginx-now"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"<nginx-now","index":"<nginx-now"},"status":404}
curl 'localhost:9200/_cat/indices?v'
⋊> ~ curl 'localhost:9200/_cat/indices?v' 16:31:35
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open nginx 5 1 18 0 120.7kb 120.7kb
yellow open wx-data-2015.12.18 5 1 2 0 9.6kb 9.6kb
yellow open nginx-2015.12.18 5 1 5 0 33kb 33kb
curl localhost:9200/_cat/indices?v- Val