Graylog: Define the retention parameters
This documentation is part of the Handle retention guide. View the full guide here: How to configure log retention.
👋 Welcome to Stackhero documentation
Stackhero provides a fully managed Graylog cloud solution designed for speed and simplicity. You can:
- Rely on an unlimited, dedicated SMTP email server included with your service.
- Apply updates effortlessly with a single click, with no manual intervention needed.
- Use a custom domain name secured by HTTPS (for example, https://logs.your-company.com), giving your team secure, direct access.
- Experience strong performance and security on a private, dedicated infrastructure with no shared resources or noisy neighbors.
Focus on your data, not your tooling: you can get started with Stackhero's Graylog cloud hosting solution in just a few minutes.
By default, Graylog limits the number of indices to 20. You can adjust this value to suit your needs. For example, if you want to store logs from the past 365 days, you could distribute retention across indices by dividing 365 days by 20 indices, which results in roughly 19 days per index.
You can perform similar calculations for the other strategies:
- For the "Index message count" strategy: if you want to keep 200 million messages with a maximum of 20 indices, then 200 million messages divided by 20 indices gives 10 million messages per index.
- For the "Index size" strategy: if you want to maintain 400 GB of logs with a maximum of 10 indices, then 400 GB divided by 10 indices gives 40 GB per index.
We recommend always keeping at least 15 GB of free disk space for logs, Graylog's journal and MongoDB data.
If free disk space runs out, OpenSearch will block its operations and you might need to upgrade to a larger instance.