Setting up an index lifecycle policy
Throughout the course of this book, we have seen how to ingest various types of data into the Elastic Stack and utilize it for diverse use cases such as observability, business analytics, and search. In real-world scenarios, a common question that arises is, “How do I manage the lifecycle and retention of my data? More importantly, how can I do so efficiently to optimize and reduce hardware costs while still fully leveraging the data?” This is where Index Lifecycle Management (ILM) comes into play. ILM is an extremely useful feature that streamlines the orchestration of your data within an Elasticsearch cluster.
In this recipe, we will put this concept into practice by defining an ILM policy for our Logs data stream. You will learn how to configure a policy and along the way, gaining insight into key aspects such as rollover, ILM phases, and much more.
Getting ready
Make sure that you have completed the Monitoring Kubernetes...