I would like to know if there is a way to use query to get the creation_date value of an index? I really need to use query and not just: GET /_all/_settings/index.creation_date
I am guessing you are interested in getting the creation date of a specific index, if that's the case, following should be useful
curl -XGET 'localhost:9200/_cat/indices/INDEX_NAME?h=creation.date,index'
To see all available options use,
curl -XGET 'localhost:9200/_cat/indices?help'
Thank you ParitoshBh! But I actually need to know how to get the creation_date with the use of QUERY. So, a search operation with the REST API.
I was thinking to use Curator if this is the only option and if this really works.
I am using watcher to know when an index was created or deleted. Does anyone have an idea how to get this date?
This might be of some help - Searching Indexes based on Index Creation date
Hi ParitoshBh! I have seen this. But it didn't help. Thanks!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.