I am using Elasticsearch 5.2, and cannot see index creation time
with http://localhost:9200/_cat/indices?v
.
Just wonder what options will show index creation time
for each of the indices.
By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds.
You can query localhost:9200/_status and that will give you a list of indices and information about each.
By default, Elasticsearch has a feature that will automatically create indices. Simply pushing data into a non-existing index will cause that index to be created with mappings inferred from the data.
Continuing our e-commerce app example, you could have one index containing all of the data related to the products and another with all of the data related to the customers. You can have as many indices defined in Elasticsearch as you want.
Have a look at the cat API : you can get the list of available parameters via http://localhost:9200/_cat/indices?help
To get the creation date of your indexes, you would use creation.date
(or creation.date.string
). For example, use
http://localhost:9200/_cat/indices?h=h,s,i,id,p,r,dc,dd,ss,creation.date.string
For full header names:
http://localhost:9200/_cat/indices?h=health,status,index,id,pri,rep,docs.count,docs.deleted,store.size,creation.date.string&v=
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With