I want to delete the indices which are stale (Not being accessed since last month). Is there a way to identify the indices which are not in use since one month?
I could not find any stats on the indices which corresponds to the last_accessed_time (Either read/write).
Just wondering if the timestamp is not maintained, but is there a way to monitor the elastic request logs to monitor the indices and delete the indices which are not used in the past month? If this is a possible solution, how to access the elastic request logs in the AWS Elasticsearch service?
Any suggestions on solving this problem would be much appreciated!