Skip to content

docs: Add raw_message_key examples and update UDP/TCP output plugin docs#2613

Merged
eschabell merged 2 commits into
fluent:masterfrom
tristanphipson:fix-docs-raw-message-key
Jul 7, 2026
Merged

docs: Add raw_message_key examples and update UDP/TCP output plugin docs#2613
eschabell merged 2 commits into
fluent:masterfrom
tristanphipson:fix-docs-raw-message-key

Conversation

@tristanphipson

@tristanphipson tristanphipson commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Changes

This PR updates and enhances the UDP and TCP output plugin documentation:

UDP Output Plugin:

  • Clarified that the $ sign is required before the key name
  • Added tabbed examples showing both top-level and nested field usage
  • Included real-world syslog message examples demonstrating practical usage
  • Added note clarifying that raw_message_key takes precedence over the format property
  • Corrected existing documentation to ensure consistency with record accessor syntax

TCP Output Plugin:

  • Added example configuration file showing basic TCP output setup
  • Added example demonstrating how to use raw_message_key with the TCP output plugin

Why

Users frequently need to send raw message payloads (e.g., syslog lines) instead of JSON-formatted output. The existing documentation lacked the $ syntax requirement, concrete examples for both UDP and TCP, and configuration file samples showing how to reference fields at different nesting levels, leading to configuration confusion and incorrect usage.

Related

Related to general UDP and TCP output plugin documentation clarity and accuracy.

Summary by CodeRabbit

  • Documentation
    • Expanded TCP/TLS output documentation with a new “Getting started” section, including configuration file examples for forwarding logs and guidance for sending raw log payloads.
    • Added/updated TCP/TLS examples for raw_message_key, including end-to-end YAML/CONF guidance and record accessor usage for top-level and nested fields.
    • Updated UDP output documentation to clarify raw_message_key behavior (raw payload sent; format ignored) and aligned examples with $ record accessor syntax.

Signed-off-by: Tristan Phipson <tristanphipson@gmail.com>
@tristanphipson tristanphipson requested review from a team and eschabell as code owners July 5, 2026 15:58
@coderabbitai

coderabbitai Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6e76c590-01c1-4148-8518-026cbeae9b5b

📥 Commits

Reviewing files that changed from the base of the PR and between 68f41af and c27ee02.

📒 Files selected for processing (1)
  • pipeline/outputs/tcp-and-tls.md
✅ Files skipped from review due to trivial changes (1)
  • pipeline/outputs/tcp-and-tls.md

📝 Walkthrough

Walkthrough

Documentation updates add TCP/TLS getting started and raw message examples, and revise UDP raw_message_key wording and examples to use $-prefixed record accessors.

Changes

Output documentation updates

Layer / File(s) Summary
TCP/TLS documentation additions
pipeline/outputs/tcp-and-tls.md
Adds a Getting Started heading, a Configuration file section with fluent-bit.yaml and fluent-bit.conf examples, and a Raw message key section with YAML/CONF examples for top-level and nested fields.
UDP raw_message_key update
pipeline/outputs/udp.md
Clarifies that raw_message_key sends the referenced field as raw payload and ignores format, and updates YAML/CONF examples to use $-prefixed record accessors.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: esmerel, patrick-stephens

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the documentation updates for raw_message_key and the UDP/TCP output plugin docs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@eschabell eschabell self-assigned this Jul 7, 2026
@eschabell eschabell added the 5.0.8 label Jul 7, 2026
…usage example

  - Also fixed few linting issues.

Signed-off-by: Tristan Phipson <tristanphipson@gmail.com>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
@eschabell eschabell force-pushed the fix-docs-raw-message-key branch from 68f41af to c27ee02 Compare July 7, 2026 11:49

@eschabell eschabell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tristanphipson added small lifting fixes, but thanks for the doc PR, merging!

@eschabell eschabell merged commit 7da3dbc into fluent:master Jul 7, 2026
8 checks passed
@eschabell eschabell added 5.0.9 and removed 5.0.8 labels Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants