Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizing Log Formatting to Reduce Datadog Costs #141

Open
krisnaBukitVista opened this issue Jan 21, 2025 · 0 comments
Open

Optimizing Log Formatting to Reduce Datadog Costs #141

krisnaBukitVista opened this issue Jan 21, 2025 · 0 comments

Comments

@krisnaBukitVista
Copy link

krisnaBukitVista commented Jan 21, 2025

Description

This project focuses on standardizing and formatting logs across key services to reduce the growth of log indices, optimize storage, and minimize payment costs for Datadog. By addressing unformatted logs, we aim to improve log readability, simplify troubleshooting, and lower operational expenses.

Problem

Currently, some logs are not formatted, leading to the following issues:

  • Increased log indices: Unformatted logs create unnecessary log entries, inflating the number of indices.
  • High costs: The growth of log indices significantly increases Datadog expenses, impacting the budget.
  • Inefficiencies in debugging: Unformatted logs are harder to analyze, slowing down issue resolution.

The primary sources contributing to the issue are:

  • Database service
  • Hades service
  • Hermes service
  • Main service
  • BIGRR service
  • Notification service

Solution

  • Log Standardization:

    • Define a unified log format (e.g., JSON structure with consistent fields such as timestamp, log_level, service_name, message, etc.).
    • Implement this format across all services.
  • Configuration Updates:

    • Update logging configurations in the following services:
    • Database service
    • Hades service
    • Hermes service
    • Main service
    • BIGRR service
    • Notification service
  • Log Filtering and Aggregation:

    • Remove unnecessary or redundant logs.
    • Aggregate repetitive log entries to minimize storage.

Measurement Metrics

  • Log Index Reduction: Reduction in log indices within the first month.
  • Cost Savings: Reduce monthly Datadog costs.
  • Compliance Rate: Logs comply with the new format across all services.

SLA

  • Log Index Reduction: Achieve a 25% reduction in log indices within the first month.
  • Cost Savings: Reduce monthly Datadog costs by at least 20%.
  • Compliance Rate: Ensure 95% of logs comply with the new format across all services.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant