New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Log Forwarding with Fluentd

Free

Centralized log collection and routing made easy.

Get this skill

Free · Opens the source repo

What Log Forwarding with Fluentd does

This skill provides a comprehensive setup for configuring Fluentd and Fluent Bit to facilitate centralized log collection, routing, and enrichment across distributed systems. Fluent Bit serves as a lightweight log forwarder installed on endpoints, while Fluentd acts as the central aggregator that processes and routes logs to various destinations. The skill includes the necessary configurations for input plugins that can handle syslog, file tailing, and application logs, ensuring that you can capture a wide range of log data effectively.

The process begins with generating the Fluent Bit configuration, which defines how logs are collected from various sources. Following this, the skill guides you through configuring the central Fluentd instance, including setting up forward input, parsing, and multi-output routing to destinations like Elasticsearch, S3, and Splunk. The skill also emphasizes log filtering and enrichment, allowing you to apply transformations and reduce noise in your log data, which is crucial for maintaining high-quality logs.

In addition to the configuration generation, this skill provides validation steps to ensure that your Fluentd and Fluent Bit configurations are syntactically correct before deployment. It also includes testing functionalities to confirm that logs are being forwarded correctly, which is essential for troubleshooting and ensuring operational integrity. Finally, the skill generates a deployment report that summarizes the configuration and provides insights into the log routing topology and health metrics, making it easier to manage and monitor your logging infrastructure.

When to use it

Use this skill when you need to implement or improve log forwarding and aggregation in your infrastructure, particularly for security and compliance purposes.

When not to use it

This skill may not be suitable for environments that do not require centralized logging or for users unfamiliar with Fluentd and Fluent Bit configurations.

What you can build with it

Setting Up a New Log Pipeline

Use this skill to quickly configure Fluent Bit and Fluentd for a new centralized log pipeline in your infrastructure.

Improving Security Architecture

Leverage this skill to enhance your security architecture by implementing robust log forwarding and aggregation.

Conducting Security Assessments

Utilize this skill when performing security assessments that require effective log collection and analysis.

How to install Log Forwarding with Fluentd

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/implementing-log-forwarding-with-fluentd --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Implementing Log Forwarding with Fluentd

Overview

This skill covers configuring Fluentd and Fluent Bit for centralized log collection, routing, and enrichment. Fluent Bit acts as a lightweight log forwarder on endpoints, while Fluentd serves as the central aggregator and processor. The configuration covers input plugins for syslog, file tailing, and application logs, with output routing to Elasticsearch, S3, and Splunk.

When to Use

  • When deploying or configuring implementing log forwarding with fluentd capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Fluentd (td-agent) v1.16+ or Fluent Bit v3.0+
  • Python 3.8+ with fluent-logger library
  • Elasticsearch or Splunk for log destination
  • Network access on port 24224 (Fluentd forward protocol)
  • Ruby 2.7+ (for Fluentd plugin development)

Steps

  1. Generate Fluent Bit Configuration — Create input, filter, and output configuration for endpoint log collection
  2. Generate Fluentd Aggregator Configuration — Configure the central Fluentd instance with forward input, parsing, and multi-output routing
  3. Configure Log Filtering and Enrichment — Add record_transformer and grep filters for log enrichment and noise reduction
  4. Validate Configuration Syntax — Parse and validate Fluentd/Fluent Bit configuration files for syntax errors
  5. Test Log Forwarding — Send test events via fluent-logger Python library and verify delivery
  6. Generate Deployment Report — Produce configuration summary with routing topology and health metrics

Expected Output

  • Fluent Bit and Fluentd configuration files (INI/YAML format)
  • Configuration validation report
  • Log routing topology diagram (text-based)
  • Test event delivery confirmation

Frequently asked questions about Log Forwarding with Fluentd

Similar skills