Skip to content

Sahilfs17/CostOptimisation-ELK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Project: πŸ’‘ Optimizing ELK Stack Costs with S3 & Lifecycle Management πŸ’°

Hey #Cloud #DevOps folks! πŸ‘‹ Sharing a recent project where we tackled a common challenge: skyrocketing ELK stack costs! πŸ“ˆ

Our client was storing all kinds of logs (application, K8s, infrastructure, Jenkins – you name it!) in their ELK setup, including tons of historical data. This led to overload and a seriously hefty bill. πŸ’Έ

Our solution? ➑️ We implemented a strategy to offload Jenkins logs to an S3 bucket and applied lifecycle management policies. This meant:

🚚 Moving Jenkins logs from the EC2 instance to S3.

⏳ Automatically transitioning older logs to Glacier/Deep Archive for cost savings.

πŸ—‘οΈ Deleting aged logs based on the defined lifecycle, keeping only the recent data needed.

The results? πŸ₯ A whopping 50% cost reduction! πŸŽ‰

This approach not only slashed expenses but also improved the performance of their ELK stack by reducing the data volume. πŸš€

Key steps included:

πŸ‘‰ Installing the AWS CLI on the Jenkins EC2 instance. πŸ’»

πŸ‘‰ Creating a bash script to automate log transfer to S3 daily. ✍️

πŸ‘‰ Configuring S3 lifecycle policies to manage log archiving and deletion.βš™οΈ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages