Logging & Log Aggregation

Configure structured logging and centralized log aggregation with Loki, Elasticsearch, Fluentd, and Promtail.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/vertivolatam/monorepo --skill logging-log-aggregation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Logging & Log Aggregation
Source: https://github.com/vertivolatam/monorepo/tree/main/skills/system-reliability-engineering/logging-log-aggregation
Command: npx skills add https://github.com/vertivolatam/monorepo --skill logging-log-aggregation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing and analyzing logs from distributed systems, enabling efficient debugging, monitoring, and compliance.

Core Features & Use Cases

  • Structured Logging: Implement consistent, machine-readable log formats (JSON) across applications.
  • Log Aggregation: Centralize logs from various sources into a single, queryable system (Loki, Elasticsearch).
  • Log Archival: Automate the archiving of old logs to S3 for long-term storage and compliance.
  • Use Case: When a critical error occurs in a microservices architecture, this Skill allows you to quickly search and correlate logs across all services to pinpoint the root cause.

Quick Start

Implement centralized logging using Loki and Promtail for your applications.

Frequently Asked Questions about Logging & Log Aggregation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I centralize logs from a microservices architecture for debugging?

Centralize logs from a microservices architecture by aggregating them into a single queryable system like Loki or Elasticsearch. This enables efficient debugging by allowing you to quickly search and correlate structured logs across all services to pinpoint root causes.

How do I implement structured logging in Node.js and Python?

Implement structured logging in Node.js and Python using provided scripts that output consistent, machine-readable JSON log formats. This standardization across applications allows log aggregation systems to efficiently parse and query the centralized data.

Does this log aggregation solution work with Fluentd and Promtail?

Yes, this log aggregation solution works with Fluentd and Promtail, providing configuration examples for both. It enables centralized log collection and forwarding into systems like Loki and Elasticsearch for robust monitoring and observability.

Can I automate log archival to S3 for compliance retention?

Yes, you can automate log archival to S3 for long-term storage and compliance using the provided tools. This requires the boto3 dependency to interact with S3 and ensures old logs are securely archived and retained.

What is the best way to query structured logs in Elasticsearch?

The best way to query structured logs in Elasticsearch is by implementing consistent JSON logging formats across your applications. Aggregating these machine-readable logs into Elasticsearch enables efficient searching, monitoring, and correlation across distributed systems.

Why use Loki over Elasticsearch for centralized log monitoring?

Use Loki or Elasticsearch for centralized log monitoring based on your specific querying needs and infrastructure scale. This solution offers configuration examples for both systems, allowing you to choose the best fit for aggregating and searching your structured logs.