Log Forwarder Inputs
Runs the 10x Engine in-path with your log forwarder to process collected log events before they ship to output destinations (e.g., Splunk, Elasticsearch, S3). Depending on the forwarder, 10x runs as a separate log10x/edge-10x sidecar container added via a values or kustomize overlay (Fluentd, Fluent Bit, Logstash, OTel Collector, Vector), as an image swap to the embedded 10x variant (Filebeat, log10x/filebeat-10x), or as a file relay (Splunk UF, Datadog Agent); 5 of the 8 supported forwarders run the sidecar.
The design enables 10x apps, the Reporter (read-only DaemonSet alongside the forwarder) and the Receiver (embedded or sidecar per forwarder, with pass, sample, compact, tier_down, offload, and drop actions plus read-only observation), to process events at the source while integrating with existing log forwarders (e.g., Fluentd/Bit).
Extensibility
All forwarder input modules utilize core IPC I/O modules (e.g., stdin, Unix) as building blocks for integrating with bundled forwarders (e.g., Fluentd/Bit) and to serve as a reference for supporting additional forwarder types.
Modules
-
Fluent Bit
Receive and optimize events collected by Fluent Bit via the Fluent Forward protocol.
-
Fluentd
Receive and optimize events collected by Fluentd via the Fluent Forward protocol.
-
OpenTelemetry Collector
Receive and optimize events collected by the OpenTelemetry Collector via OTLP/gRPC (both directions).
-
Vector
Receive and optimize events collected by Vector via the socket sink and fluent source.
-
Filebeat
Report, receive, and optimize events collected by Filebeat forwarders.
-
Logstash
Receive and optimize events collected by Logstash via newline-delimited JSON.
-
Splunk UF Input
Receive and optimize events before shipping to Splunk via Universal Forwarder.
-
Datadog Agent Input
Receive and optimize events before shipping to Datadog via Datadog Agent.
Config Files
To configure the Log Forwarder inputs module, Edit these files.
Below is the default configuration from: forwarder/config.yaml.
ewogICJ0eXBlIiA6ICJvYmplY3QiLAogICJwcm9wZXJ0aWVzIiA6IHsKICAgICJpbmNsdWRlIiA6IHsKICAgICAgInR5cGUiIDogImFycmF5IiwKICAgICAgIml0ZW1zIiA6IHsKICAgICAgICAidHlwZSIgOiAic3RyaW5nIgogICAgICB9CiAgICB9LAogICAgInRlbngiIDogewogICAgICAidHlwZSIgOiAic3RyaW5nIgogICAgfSwKICAgICJvdX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dGhlIGJ5dGVzIGEgZm9yd2FyZGVyIGlucHV0IHJlYWRzLCBzdWNoIGFzIGAxc2AgKHRoZSBkZWZhdWx0KSBvciBgMW1gLiBIYXMgbm8gZWZmZWN0IHdoaWxlIGBmb3J3YXJkZXJJbnB1dEJ5dGVzTGltaXRgIGlzIGAwYC4gKERlZmF1bHQ6IDFzKSIsCiAgICAgICAgICAiZGVmYXVsdCIgOiAiMXMiCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfSwKICAiYWRkaXRpb25hbFByb3BlcnRpZXMiIDogdHJ1ZQp9
# 🔟❎ 'run' shared forwarder configuration
#
tenx: run
# =============================== Dependencies ================================
include:
# Shared forwarder options (mode dispatch, output encoding)
- run/modules/input/forwarder/module.yaml
# =============================== Mode Options ================================
#
# The Receiver app picks the encoding mode based on user flags:
# default → emit events verbatim (`fullText`)
# receiverOptimize=true → compact-all (lossless compaction of every event)
# compactReceiverLookupFile=… → compact-lookup (per-pattern decision: listed patterns follow their row, the rest compactReceiverDefault)
#
# `symbolMessageHashField` (optional, unset by default) adds a stable
# pattern-hash field alongside the encoded/fullText output: when set, encode()
# and fullText are called as `encode("<field>")` / `fullText("<field>")`.
#
# Unset is the receive-path default and it means VERBATIM: the record the
# forwarder gets back is the record it sent, byte for byte, with no field added.
# The hash is still computed and still rides the TenXObject internally as
# `tenx_hash` for metrics and aggregation, it just does not reach the wire.
# `symbolMessageHashField my_custom_hash` (CLI arg or env var) opts in and names
# the field.
output:
# outputEncodeFilter is the condition under which the Receiver compacts an
# event with encode(); it writes every other event fullText. Resolved once
# here, so the output expression below and the compact_events aggregator in
# run/aggregate/receive read the same condition:
# outputOffload truthy → false (offload ships full text)
# outputSoftDrop truthy → !isRoute("tier_down") && !isRoute("offload") && (isRoute("compact") || <decide>)
# (the compact-marked slice, plus what <decide> selects; the tier_down and offload
# slices always leave as full text, since their destinations do not expand events)
# compactReceiverLookupFile set → shouldEncode() (the cap file's per-pattern decision; unlisted patterns follow compactReceiverDefault)
# receiverOptimize truthy → true (every event of the source)
# none of them → false (receive mode)
# <decide> is shouldEncode() with a cap file, else true under receiverOptimize, else false.
encodeFilter: |-
$=yield TenXEnv.get("outputOffload")
? "false"
: ((TenXEnv.get("outputSoftDrop") ? "!isRoute(\"tier_down\") && !isRoute(\"offload\") && (isRoute(\"compact\") || " : "")
+ (TenXEnv.get("compactReceiverLookupFile") ? "shouldEncode()" : (TenXEnv.get("receiverOptimize") ? "true" : "false"))
+ (TenXEnv.get("outputSoftDrop") ? ")" : ""))
# outputEncodeField is the per-event output field expression: encode() where
# outputEncodeFilter holds, fullText(...) otherwise. Written as a YAML `|-`
# block scalar for readability: the engine treats the newlines and indentation
# between tokens as whitespace, and block scalars keep the `\"` below as is.
#
# The offload and soft-drop modes splice the `routeState` field onto every
# forwarded event, so the forwarder can route by the per-service action name.
# The names route as offload → the customer's own S3, tier_down → the SIEM
# cheap tier, compact → encoded bytes to the SIEM, pass/sample → the SIEM. The splice writes the
# route NAME as a JSON STRING (e.g. `"routeState":"offload"`), so a forwarder
# match must be string equality against the action name, NOT truthiness.
# `symbolMessageHashField`, when set, ships the pattern hash beside it.
#
# Receive mode calls the fullText(...) FUNCTION, not the bare `fullText`
# field. The field splices the decoded body back between the JSON quotes
# unescaped and joins grouped lines with ",", so a record whose message holds
# a `"` does not parse. The function re-escapes and joins on "\n".
#
# The function takes at least one extra-field name, and a name no event
# carries adds nothing. `tenx_passthrough` is never stamped, so records keep
# exactly the keys they arrived with.
encodeField: |-
$=yield "encoded=(" + TenXEnv.get("outputEncodeFilter") + ") ? encode("
+ (TenXEnv.get("symbolMessageHashField")
? ("\"" + TenXEnv.get("symbolMessageHashField") + "\"" + ((TenXEnv.get("outputOffload") || TenXEnv.get("outputSoftDrop")) ? "," : ""))
: "")
+ ((TenXEnv.get("outputOffload") || TenXEnv.get("outputSoftDrop")) ? "\"routeState\"" : "")
+ ") : fullText("
+ (TenXEnv.get("symbolMessageHashField")
? ("\"" + TenXEnv.get("symbolMessageHashField") + "\"" + ((TenXEnv.get("outputOffload") || TenXEnv.get("outputSoftDrop")) ? "," : ""))
: "")
+ ((TenXEnv.get("outputOffload") || TenXEnv.get("outputSoftDrop"))
? "\"routeState\""
: (TenXEnv.get("symbolMessageHashField") ? "" : "\"tenx_passthrough\""))
+ ")"
# outputWriteTemplates = true whenever events are encoded (compact-all or soft-drop)
writeTemplates: $=yield TenXEnv.get("compactReceiverLookupFile") || TenXEnv.get("receiverOptimize") || TenXEnv.get("outputSoftDrop")
# outputDropFilter decides whether a (possibly regulator-marked) object is written.
# Resolved ONCE here so the soft/hard logic lives next to encodeField instead of
# being duplicated in every output stream; streams just reference $?outputDropFilter.
# (Named outputDropFilter, not outputFilter -- the latter is a built-in per-stream
# engine option and would collide.)
# outputSoftDrop or outputOffload truthy → "isObject" (write all; dropped events flow for routing/compaction)
# unset (hard, default) → "isObject && !this.isRoute("drop")" (omit dropped objects)
dropFilter: '$=yield (TenXEnv.get("outputSoftDrop") || TenXEnv.get("outputOffload")) ? "isObject" : "isObject && !this.isRoute(\"drop\")"'
Options
Specify the options below to configure the Log Forwarder inputs:
| Name | Description |
|---|---|
| forwarderInputBytesLimit | The most bytes a forwarder input reads in each forwarderInputBytesInterval, 0 for no limit |
| forwarderInputBytesInterval | The interval forwarderInputBytesLimit counts bytes over |
| outputEncodeFilter | The condition under which each forwarder's output stream compacts an event with encode() |
| outputEncodeField | The single field expression each forwarder's output stream writes per event |
| outputWriteTemplates | Whether the forwarder emits new TenXTemplates alongside encoded events |
| outputSoftDrop | Write every event with its routeState field and compact the events the regulator marks compact |
| outputOffload | Write every event as full text with its routeState field |
| outputDropFilter | The filter expression each output stream uses to decide whether a marked object is written |
| receiverReadOnly | Read-only mode, receive events, emit metrics, do not write back to the forwarder |
forwarderInputBytesLimit
The most bytes a forwarder input reads in each forwarderInputBytesInterval, 0 for no limit.
| Type | Default |
|---|---|
| String | 2MB |
The most bytes a forwarder input (Fluent Bit, Fluentd, Vector,
Filebeat, Logstash, OpenTelemetry Collector) reads from its socket in
each forwarderInputBytesInterval, such as 20MB. When the limit is
reached, the input stops reading until the interval ends, and the
forwarder holds the events in its own buffer meanwhile; no event is
dropped.
The default is 2MB a second. 0 sets no byte limit: the input then
stops reading only when the pipeline holds as many events as
objectLimitMaxInstances allows (by default 5,000 for each 100 MB of
heap).
Raise it to let one Receiver take more than 2 MB a second, for example
forwarderInputBytesLimit 20MB.
forwarderInputBytesInterval
The interval forwarderInputBytesLimit counts bytes over.
| Type | Default |
|---|---|
| String | 1s |
The interval over which forwarderInputBytesLimit counts the bytes a
forwarder input reads, such as 1s (the default) or 1m. Has no
effect while forwarderInputBytesLimit is 0.
outputEncodeFilter
The condition under which each forwarder's output stream compacts an event with encode().
| Type | Default |
|---|---|
| String | false |
Resolved once by the customer-facing config.yaml from the Receiver's mode options, so every reader of the condition sees the same one:
- receive mode (default) and outputOffload:
false, no event is compacted - receiverOptimize:
true, every event is compacted - compactReceiverLookupFile:
shouldEncode(), the cap file's per-pattern decision - outputSoftDrop:
!isRoute("tier_down") && !isRoute("offload") && (isRoute("compact") || <decide>), where<decide>is one of the three above; events markedtier_downoroffloadstay full text
outputEncodeField compacts the events the condition holds for, and the
Receiver's compact_events aggregator counts them.
outputEncodeField
The single field expression each forwarder's output stream writes per event.
| Type | Default |
|---|---|
| String | fullText |
Resolved once by the customer-facing config.yaml as
encoded=(<outputEncodeFilter>) ? encode(...) : fullText(...). The
offload and soft-drop modes add the routeState field to both calls, and
symbolMessageHashField adds the pattern hash field.
Advanced users can override directly to customize the output field expression.
outputWriteTemplates
Whether the forwarder emits new TenXTemplates alongside encoded events.
| Type | Default |
|---|---|
| String | false |
True for encoding modes (compact-all, compact-lookup) so decoders can reconstruct events from templateHash + vars. False for receive mode (no encoding → no templates needed).
outputSoftDrop
Write every event with its routeState field and compact the events the regulator marks compact.
| Type | Default |
|---|---|
| Boolean | false |
Writes every event with its routeState field and compacts the events the regulator marks compact.
outputOffload
Write every event as full text with its routeState field.
| Type | Default |
|---|---|
| Boolean | false |
Writes every event as full text with its routeState field.
outputDropFilter
The filter expression each output stream uses to decide whether a marked object is written.
| Type | Default |
|---|---|
| String | isObject \&\& !isRoute("drop") |
Events the regulator marks drop are left out by default. Set
outputSoftDrop or outputOffload to true to write every event with
its routeState field, for the forwarder to route on. outputSoftDrop
also compacts the events marked compact; outputOffload writes every
event as full text.
receiverReadOnly
Read-only mode, receive events, emit metrics, do not write back to the forwarder.
| Type | Default |
|---|---|
| Boolean | false |
When true, the return output each forwarder input opens (Forward for Fluent Bit, Fluentd and Vector, Unix socket for Filebeat, TCP socket for Logstash, OTLP for the OpenTelemetry Collector) is not constructed, so no event and no template is written back to the forwarder; the aggregators still run and publish their metrics.
The Reporter sets it to
true. With the Receiver it
defaults to false. Declared here so that it is accepted as a launch
argument or a configuration key with any app that loads a forwarder
input; the Receiver and Reporter apps declare it with the same name,
type and default.
This module is defined in forwarder/module.yaml.