log-volume-optimizer

Official

Analyze and optimize log volume across services.

Authorrazorpay
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Analyzes and optimizes log volume across Razorpay services by scanning codebases for log statements, estimating daily volume, and generating optimization recommendations. Supports batch processing across multiple repositories with automated PR creation to apply changes, reducing Coralogix units consumption and costs while auditing log hygiene for Go repositories.

Core Features & Use Cases

  • Scan repositories for log statements with context (loops, error handling) and estimate daily volume.
  • Match scanned logs to Coralogix MCP data for frequency-aware decisions.
  • Apply a rule-based decision engine to decide actions (KEEP, DOWNGRADE, AGGREGATE, REMOVE, or ADD metrics).
  • Batch analyze multiple repositories and produce reports (CSV/Markdown/JSON) with recommended changes.
  • Generate patches and create PRs via GitHub API to implement optimizations.

Quick Start

Run batch_analyze.py on one or more Go repos to generate reports and PRs with log-volume optimizations.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: log-volume-optimizer
Download link: https://github.com/razorpay/trino-gateway/archive/main.zip#log-volume-optimizer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.