/platform-extras-skills:fluent-bit-configuration-validationfrom platform-extras-skills
Validates Fluent Bit pipeline configuration syntax and tests INPUT/FILTER/OUTPUT pipeline against sample log lines before deployment. Includes dry-run checks, parser testing, and route/Match verification.
Ships in platform-extras-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A Fluent Bit config that parses as valid YAML/INI can still be
functionally broken in ways that only surface once it's rolled out
cluster-wide as a DaemonSet: a Match pattern that doesn't actually
match the tag it's meant to filter, a parser that silently fails to
extract fields from real log lines, or an output pointed at the wrong
destination — none of which Fluent Bit's own parser rejects at load
time, because all of these are still structurally valid configuration.
This skill covers validating a Fluent Bit pipeline before it's
deployed broadly: a dry-run against sample input, testing parser
expressions against real sample log lines, and confirming Match
patterns actually route to the intended output — as a pre-deploy gate
on top of the pipeline design covered in
fluent-bit-log-forwarding-configuration,
which this skill assumes is already designed and does not repeat.
fluent-bit.yaml/fluent-bit.conf — new INPUT, new parser, new
routing rule, or a changed OUTPUT destination.json, logfmt, regexp,
pattern, multiline) and needing to confirm it actually extracts
the expected fields from real log lines before it ships.Match
patterns that are broader (or narrower) than intended, as a
proactive health check rather than only after an incident.fluent-bit binary (or the equivalent container image,
fluent/fluent-bit:<version>) available locally or in CI to run
dry-run/stdout checks without needing a live cluster.values.yaml/chart input isn't the actual config Fluent Bit
receives; render it first.Render the actual deployed config before validating anything,
the same discipline as validating Loki config — a raw Helm
values.yaml or hand-maintained ConfigMap template is not what
Fluent Bit actually loads:
helm template fluent-bit fluent/fluent-bit -f values-production.yaml \
--show-only templates/fluent-bit-configmap.yaml > rendered-fluent-bit.yaml
Dry-run the rendered pipeline against stdout to confirm it
loads without error and to see, in real time, which records actually
flow through which route — this is the single most useful
validation step and catches most Match mistakes immediately:
fluent-bit -c rendered-fluent-bit.yaml -o stdout -m '*'
Feed it representative input (tail a file with sample log lines
appended, or point a test tail input at a fixture file instead of
/var/log/containers/*.log) rather than only checking that the
process starts without a config-parse error — a config that loads
cleanly can still route nothing anywhere.
Test each parser expression against real sample log lines in isolation before trusting it inside the full pipeline — a subtly wrong regex or pattern capture silently drops or mis-extracts fields rather than erroring:
# single-parser test using the parsers.conf/parsers.yaml file directly
echo '{"level":"error","msg":"payment declined","request_id":"abc123"}' | \
fluent-bit -c /dev/null \
-R parsers.yaml \
-i stdin -p 'format=json' \
-F parser -p 'key_name=log' -p 'parser=app_json' -m '*' \
-o stdout
For a regexp/pattern parser matching a custom log format, run it
against several real sample lines that cover the format's actual
variation (different log levels, a line with an unusually long
field, a line missing an optional field) — not just the one
cleanest example line.
Confirm each Match pattern actually matches its intended tag
using the stdout dry-run's visible tag output, rather than assuming
a pattern is correctly scoped from reading it — this is exactly the
mistake structural validation cannot catch, since an overly broad or
overly narrow Match is still valid syntax:
fluent-bit -c rendered-fluent-bit.yaml -o stdout -m '*' 2>&1 | grep -E '^\[.*\]'
Confirm specifically: does kube.payments.* catch every payments
pod's tag after the kubernetes filter's kube_tag_prefix
rewrites it? Does kube.security-audit.* not also catch
payments logs (an overly broad pattern silently duplicating output
across destinations)? Verify both directions — under-matching
(logs that should route somewhere don't) and over-matching (logs
route to more places than intended).
Verify filter ordering produces the field set each downstream
stage actually expects — a parser/modify/grep filter placed
before the kubernetes enrichment filter won't have Kubernetes
metadata available yet to filter or route on, and a filter placed
after a redaction step can't act on a field that was already
removed:
fluent-bit -c rendered-fluent-bit.yaml -o stdout -m '*' | \
jq 'select(.kubernetes == null)' # should be empty after the kubernetes filter runs
Confirm redaction filters actually remove the intended fields from the final output, not just that the filter is present in the config — verify by inspecting the dry-run's actual emitted records:
fluent-bit -c rendered-fluent-bit.yaml -o stdout -m '*' | \
jq 'has("authorization") or has("password")' # must be false for every record
Warning: never treat "the
modify/grepredaction filter is in the config" as sufficient evidence that redaction works — aMatchmismatch (step 4) or wrongkey_namesilently leaves the filter never applied to the records that actually carry the sensitive field. Confirm against real dry-run output before trusting any redaction rule with production data.
Validate output destination reachability and credentials separately from pipeline logic, using each output's lightest- weight connectivity check rather than routing real production volume at an unverified destination:
curl -sf -o /dev/null -w '%{http_code}' http://loki-gateway.monitoring.svc:3100/ready
Wire steps 1-4 into CI so a Match/parser mistake fails the PR
instead of the deploy:
# GitHub Actions example
- name: Render Fluent Bit config
run: helm template fluent-bit fluent/fluent-bit -f values-production.yaml --show-only templates/fluent-bit-configmap.yaml > rendered.yaml
- name: Dry-run against fixture logs
run: |
docker run --rm -i \
-v "${{ github.workspace }}/rendered.yaml:/fluent-bit/etc/fluent-bit.yaml" \
-v "${{ github.workspace }}/fixtures:/fixtures" \
fluent/fluent-bit:3.1.9 \
-c /fluent-bit/etc/fluent-bit.yaml -o stdout -m '*' < fixtures/sample-lines.log
- name: Assert no leaked secret fields
run: |
./scripts/dryrun_and_check.sh rendered.yaml fixtures/sample-lines.log \
| jq -e 'has("authorization") or has("password") | not'
Keep a small, checked-in fixture file of representative sample log lines per log format the pipeline handles, so this check is deterministic and doesn't depend on a live cluster's current traffic.
After deploying, confirm real production behavior matches the validated dry-run — static validation reduces but does not eliminate risk from something the fixture set didn't cover:
kubectl logs -n monitoring -l app=fluent-bit --tail=200 | grep -i error
A spike in Fluent Bit's own internal error/retry metrics immediately after a config rollout is the final real-world confirmation validation should have (but might not have) caught.
Match
mismatch or broken parser is invisible to a syntax-only check and
only visible in the dry-run's actual emitted output.Match patterns in both directions: confirm intended logs are
caught (no under-matching) and confirm unintended logs are excluded
(no over-matching/duplication across destinations).Symptom: A Fluent Bit config change deploys cleanly (no
parse/load error) but a specific log stream stops appearing at its
destination.
Fix: The relevant output's Match pattern doesn't actually match
the stream's tag after upstream filters rewrote it — run the stdout
dry-run (step 2/4) against a sample of that stream's tag and confirm
the pattern catches it; this is exactly the class of mistake
structural config loading cannot detect.
Symptom: A new parser expression is added for a custom log format, and it "works" in a quick manual test but silently fails to extract fields for a meaningful fraction of real production lines. Fix: The parser was only tested against one clean example line. Re-test against several real sample lines covering the format's actual variation (different log levels, missing optional fields, unusually long values) before trusting it broadly.
Symptom: A redaction filter meant to strip a sensitive field from
logs is present in the config and reviewed as correct, but the field
still reaches the destination.
Fix: Confirm via dry-run output (step 6), not by reading the
filter's config, that the field is actually absent from emitted
records — a Match/key_name mismatch commonly leaves a redaction
filter never applied to the records that actually carry the field.
Symptom: Two teams' logs that were meant to go to two different
destinations both end up at both destinations after a routing change.
Fix: One or both outputs' Match patterns are broader than
intended (over-matching). Verify each Match pattern excludes the
other stream's tag explicitly using the dry-run's visible tag output,
not just that each pattern matches its own intended stream.
Symptom: A config change is validated with a single "does it
start" check in CI, passes, and still breaks routing in production.
Fix: "Starts without error" only proves structural validity, not
correct behavior. Add the fixture-based stdout dry-run (step 8) to
CI so Match/parser correctness is checked automatically on every
PR, not just config load success.
Scenario: A PR adds a new regexp parser for a legacy application's
custom log format and changes an existing Match pattern from
kube.payments.* to kube.*payments* intended to also catch a newly
renamed payments-batch service's logs.
helm template fluent-bit fluent/fluent-bit -f values-production.yaml \
--show-only templates/fluent-bit-configmap.yaml > rendered.yaml
payments-api and the newly renamed payments-batch, plus a
security-audit line that must not be caught by the changed
pattern:
fluent-bit -c rendered.yaml -o stdout -m '*' < fixtures/sample-lines.log
payments-api and payments-batch lines both now
route to the loki output as intended — the pattern change works
as designed. But it also shows a security-audit-payments-reconciliation
service's logs (an unrelated service with "payments" in its name)
now unexpectedly routing to the same Loki output — over-matching
caught before merge.regexp parser is tested in isolation against five sample
lines from the legacy app, including one with a missing optional
duration field — the parser initially fails to handle the missing
field gracefully, dropping the whole line instead of extracting the
fields that are present; the pattern is fixed to make that capture
group optional and re-tested until all five samples parse correctly.Match pattern is corrected to kube.*payments-api* OR an
explicit second entry for kube.*payments-batch*, re-validated with
the dry-run to confirm security-audit-payments-reconciliation is
now correctly excluded.security-audit-payments-reconciliation
sample line in the fixture set permanently, so this specific
over-matching regression is caught automatically on any future
Match pattern change.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fluent-bit, config-validation, log-pipeline, dry-run, ci-validation
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin platform-extras-skills16 skills in this plugin
/backstage-developer-portalGuides building an internal developer portal with Backstage — authoring catalog-info.yaml to register services in the software catalog, setting up TechDocs for docs-as-code, writing Software Templates to scaffold new services, and understanding the plugin architecture. Use when a user asks to "register a service in Backstage", "write a catalog- info.yaml", "set up TechDocs", "create a Backstage software template for scaffolding new repos", "add a Backstage plugin", or "build an internal developer portal."
/distributed-tracing-with-tempo-and-jaegerGuides configuring Grafana Tempo or Jaeger as the distributed tracing backend — trace storage backend selection and retention, sampling strategy at the backend/collector level (head-based vs. tail-based), and trace-to-metrics/trace-to-logs correlation so a trace ID can pivot directly into a log line or a metrics exemplar. Use when the user asks to "set up Tempo," "configure Jaeger storage," "set trace retention," "configure trace-to-logs correlation in Grafana," "design a sampling strategy for traces," or "query traces with TraceQL." This is the tracing *backend/storage* layer — instrumenting applications and configuring the OpenTelemetry Collector that feeds this backend is covered separately in opentelemetry-instrumentation-and-collector-configuration.
/fluent-bit-log-forwarding-configurationConfigures Fluent Bit as a lightweight log forwarder — INPUT sources (`tail`, `systemd`, Kubernetes container logs), FILTER stages (`kubernetes` metadata enrichment, `parser`, `grep`, `modify`, `nest`/`lift`), and OUTPUT routing to Loki, Elasticsearch/OpenSearch, or S3, including multiple outputs via tags/`Match` and backpressure/ buffering settings. Use when the user asks to "set up Fluent Bit," "forward Kubernetes pod logs to Loki/Elasticsearch/S3," "write a Fluent Bit parser for my log format," "route different logs to different outputs," or "Fluent Bit is dropping logs / backing up."
/incident-investigation-using-metrics-logs-tracesGuides correlating Prometheus metrics, log queries, and distributed traces together during a live incident investigation — using each signal's strengths to narrow from "something is wrong" to a specific root cause faster than any single signal alone. Use when a user asks to "investigate this incident using our metrics and logs," "find the root cause across dashboards, logs, and traces," "correlate this latency spike with logs and a trace," "pivot from an alert to the actual failing request," or is actively triaging a live production issue and needs a systematic cross-signal approach rather than guessing which dashboard to check next.
/karpenter-cluster-autoscalingGuides configuring Karpenter for Kubernetes node autoscaling — NodePool and EC2NodeClass (or equivalent) provisioning, consolidation and bin-packing behavior, Spot/On-Demand mixing, and how Karpenter compares to and can replace the Kubernetes Cluster Autoscaler. Use when a user asks to "set up Karpenter", "write a NodePool spec", "reduce node cost via consolidation/bin-packing", "mix Spot and On-Demand nodes", "choose between Karpenter and Cluster Autoscaler", or "debug why pods are stuck Pending / a node won't scale down."
/kubecost-cost-visibilityGuides deploying Kubecost inside Kubernetes clusters to allocate cloud spend down to namespace, workload, and label, build showback/chargeback reports for platform stakeholders, and feed cost signals into cluster autoscaling and rightsizing decisions. Use when a user asks to "show cost per namespace/team/label in Kubernetes", "set up Kubecost", "build a Kubernetes showback or chargeback report", "find which workload is driving the cloud bill", "size resource requests based on cost", or "connect Kubernetes cost data to autoscaler decisions."
Other plugins' skills for the same job