Skip to content

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.

    More info

  • Fluentd


    Receive and optimize events collected by Fluentd via the Fluent Forward protocol.

    More info

  • OpenTelemetry Collector


    Receive and optimize events collected by the OpenTelemetry Collector via OTLP/gRPC (both directions).

    More info

  • Vector


    Receive and optimize events collected by Vector via the socket sink and fluent source.

    More info

  • Filebeat


    Report, receive, and optimize events collected by Filebeat forwarders.

    More info

  • Logstash


    Receive and optimize events collected by Logstash via newline-delimited JSON.

    More info

  • Splunk UF Input


    Receive and optimize events before shipping to Splunk via Universal Forwarder.

    More info

  • Datadog Agent Input


    Receive and optimize events before shipping to Datadog via Datadog Agent.

    More info

Config Files

To configure the Log Forwarder inputs module, Edit these files.

Below is the default configuration from: forwarder/config.yaml.

Edit Online

Edit config.yaml Locally

# 🔟❎ '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 marked tier_down or offload stay 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.