fluent-logging

fluent-logging is a skill for Claude Code from Xakki/ai-agents-skills. It costs 69 tokens per session (873 once invoked), scanned A, original, MIT.

A shared logging setup for sending structured application logs to Graylog through Fluent Bit. Structured logs are consistently formatted records that computers can search and process.

In plain words
What is it for?
Use it to configure Laravel or Python logging, Docker log forwarding, Fluent Bit, Graylog GELF output, log levels, log locations, and end-to-end log checks.
Why use it?
It gives projects a common route, format, and handling approach for logs from containers and applications, including secret-redaction rules.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-agents-skills plugin — 23 skills, 3 agents, 6 hooks shipped together

Good fit Use it to configure Laravel or Python logging, Docker log forwarding, Fluent Bit, Graylog GELF output, log levels, log locations, and end-to-end log checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xakki/ai-agents-skills/fluent-logging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Xakki/ai-agents-skills --skill fluent-logging
Clone the repo
git clone --depth 1 https://github.com/Xakki/ai-agents-skills

Made for: Claude Code.

Or install ai-agents-skills, the plugin that ships this one along with the rest of its 23 skills, 3 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fluent-logging

README.md
[![agentmods](https://agentmods.dev/badge/skills/xakki/ai-agents-skills/fluent-logging/github.svg)](https://agentmods.dev/skills/xakki/ai-agents-skills/fluent-logging)
Your own site
<a href="https://agentmods.dev/skills/xakki/ai-agents-skills/fluent-logging"><img src="https://agentmods.dev/badge/skills/xakki/ai-agents-skills/fluent-logging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fluent-logging

Your own site · 80×15
<a href="https://agentmods.dev/skills/xakki/ai-agents-skills/fluent-logging"><img src="https://agentmods.dev/badge/skills/xakki/ai-agents-skills/fluent-logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 873 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.00873
Opus 5 $0.00034 $0.00436
Sonnet 5 $0.00014 $0.00175
Haiku 4.5 $0.00007 $0.00087

Measured 9d ago against content hash c7d4e0729902, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

fluent-logging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fluent-logging/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

fluent-logging — unified logging standard

Invariant: every project ships logs to Graylog via xakki/fluent-log. Containers write structured JSON to stdout/stderr (or an NDJSON file) → Docker fluentd driver → fluent-bit (GELF) → Graylog. fluent-bit metrics → Prometheus.

Happy-path (any stack)

  1. Lib. PHP/composer: composer require xakki/fluent-log. Otherwise — git submodule docker/vendor/fluent-log (as a whole dir).
  2. Overlay docker/fluent-logging.yml: include: the lib's docker-fluent.yml + COPY the x-logging anchor (anchors don't cross include) + <<: *_logging + labels:{tier,log_format} + depends_on: fluent-bit on your services.
  3. .env: activate via COMPOSE_FILE; set COMPOSE_PROJECT_NAME (required — otherwise a name with a leading dash!), EXT_FLUENT_*, GRAYLOG_*, HOST_NAME/IP, TZ.
  4. Makefile: HOST_IP from hostname -I, log-test target (see new-project-docker).
  5. Verify end-to-end → find in Graylog by docker_project:<name> (source = host IP, shared; distinguish by docker_project/docker_service).

Steps 2–5 in full (overlay snippet, env table, fluent-bit ports, search, verification order, log_format→parsers routing) — integration.md.

Per-stack

  • Laravel: composer require xakki/laralog (structured Monolog) + log_format:"php".
  • Python: one JSON line per record to stdout (json_default fluent-bit unpacks it; log_format can be left unset → gl.auto). Formatter + redaction filter — python.md. Reference: <project>/app/logging_setup.py.
  • Node/other: same principle — structured JSON to stdout, secrets redacted.

CRITICAL safety

  • NEVER log secrets/PII (tokens, passwords, keys, sessions, full request/response body, email in plaintext). Redact before emit (ban-list filter). Common leak — httpx/SDK log a URL with the token in the path.
  • Logging never fails the request — best-effort (fluentd-async: true): Graylog/socket unavailable → request completes normally.
  • Log once, at the boundary; values go in context fields (snake_case, typed), NOT interpolated into message.
  • Host paths for file-tail (MYSQL_SLOWLOG_PATH/JSON_LOG_PATH) — ABSOLUTE only (a relative one silently binds an empty/wrong dir; details — integration.md).
  • COMPOSE_FILE in .env changes ALL docker compose commands (auto-merges the overlay).
  • Switching a service to the fluentd driver = container recreation (DB — during a maintenance window; the app pool must survive, Python pool_pre_ping=True).

Read the full file on GitHub · 58 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 58 lines · 69 tokens per session scan A c7d4e0729902

Subscribe to this mod's changes

fluent-logging is a skill published in the GitHub repository Xakki/ai-agents-skills (6 stars, last pushed 19d ago), licensed MIT. It adds 69 tokens to every session and 873 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ag-preparar-ambiente

Gera e mantém infraestrutura de desenvolvimento e CI/CD: Dockerfile, docker-compose, pipeline, env vars. Dev novo roda em 10 min.

andregusman-raiz/a-gusman-claude · 38 tokens

openpanel

Query self-hosted OpenPanel analytics — funnel counts, unique users, breakdowns by os/country/path, raw events. Use whenever analytics numbers are needed: funnel conversion, visitor counts, event counts over a window, period-over-period deltas, "how many signups/checkouts/sessions", or any /darkflow:analytics-review…

alifanov/darkflow · 86 tokens

kubernetes-specialist

Expert Kubernetes specialist mastering container orchestration, cluster management, and cloud-native architectures. Specializes in production-grade deployments, security hardening, and performance optimization with focus on scalability and reliability.

bish-x/bx-dev-skill · 42 tokens

docker-development

Docker and container development agent skill and plugin for Dockerfile optimization, docker-compose orchestration, multi-stage builds, and container security hardening. Use when: user wants to optimize a Dockerfile, create or improve docker-compose configurations, implement multi-stage builds, audit container…

bish-x/bx-dev-skill · 84 tokens

docker-patterns

Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration. Use when setting up containerized development environments or reviewing Docker configurations.

Yaomeng1749/claude-code-digital-nomad-config-pack · 40 tokens

docker

Docker containerization best practices for building, securing, and deploying containers.

shahidshabbir-se/my-pi-setup · 16 tokens