5
我正在使用Elasticsearch 5.2,但無法看到index creation time
和http://localhost:9200/_cat/indices?v
。如何使用Elasticsearch中的_cat/indices API顯示索引創建時間
只是想知道哪些選項會顯示index creation time
爲每個指標。
我正在使用Elasticsearch 5.2,但無法看到index creation time
和http://localhost:9200/_cat/indices?v
。如何使用Elasticsearch中的_cat/indices API顯示索引創建時間
只是想知道哪些選項會顯示index creation time
爲每個指標。
看一看在cat API:您可以通過http://localhost:9200/_cat/indices?help
獲取可用參數的列表,讓您的索引的創建日期,你會使用creation.date
(或creation.date.string
)。例如,使用
http://localhost:9200/_cat/indices?h=h,s,i,id,p,r,dc,dd,ss,creation.date.string
非常感謝!這樣可行。 – dapangmao
如何按創建日期對索引進行排序? –
@VedranMaricevic對於ES5,追加'&s = creation.date',類似於'http:// localhost:9200/_cat/indices?h = h,s,i,id,p,r,dc,dd,ss, creation.date.string&s = creation.date' – nikoshr