Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux_faq:elasticsearch_faq [2024/11/26 15:17] – [Размеры индексов в байтах] adminlinux_faq:elasticsearch_faq [2024/11/26 18:18] (current) – [List indexes] admin
Line 140: Line 140:
   curl -k -u $AUTH https://elasticsearch-es-http.default.svc.cluster.local:9200/_aliases?pretty=true   curl -k -u $AUTH https://elasticsearch-es-http.default.svc.cluster.local:9200/_aliases?pretty=true
  
 +Или вот - с сортировкой по дате и указанием размера:
 +  AUTH=elastic:Aizahphoh7dai0siesairohdohfe3cai
 +  ES_ENDPOINT='https://stack-es-http.observability.svc:9200'
 +  curl -k -u $AUTH "${ES_ENDPOINT}/_cat/indices/*?v=true&s=creation.date.string:asc"
 ====== Get indices in a cluster ====== ====== Get indices in a cluster ======
   curl http://~~~elastic_client_IP~~~/_cat/indices?pretty=true   curl http://~~~elastic_client_IP~~~/_cat/indices?pretty=true
  • linux_faq/elasticsearch_faq.txt
  • Last modified: 2024/11/26 18:18
  • by admin