Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
747 views
in Technique[技术] by (71.8m points)

elasticsearch - How to delete elastic search indices older than 30 days using dev tool commands

I want to delete kibana indices that are older than 30 days from today using kibana dev tools.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can simply use the Index life cycle management to automate it.

EDIT You can use the http://es-host:9200/_cat/indices?h=index,creation.date.string to find the indices creation time of all indices in your cluster, once you have all the indices, you can delete them using the delete indices API.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...