Syslog Receiver
contrib
Maintainers: @andrzej-stencel
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
Configuration
Operators
Each operator performs a simple responsibility, such as parsing a timestamp or JSON. Chain together operators to process logs into a desired format.- Every operator has a
type. - Every operator can be given a unique
id. If you use the same type of operator more than once in a pipeline, you must specify anid. Otherwise, theiddefaults to the value oftype. - Operators will output to the next operator in the pipeline. The last operator in the pipeline will emit from the receiver. Optionally, the
outputparameter can be used to specify theidof another operator to which logs will be passed directly. - Only parsers and general purpose operators should be used.
UDP Configuration
TCP Configuration
TLS Configuration
Thetcp_input operator supports TLS, disabled by default.
multiline configuration
If set, the multiline configuration block instructs the udp_input operator to split log entries on a pattern other than newlines.
note If multiline is not set at all, it won’t split log entries at all. Every UDP packet is going to be treated as a log.
note multiline detection works per UDP packet due to protocol limitations.
The multiline configuration block must contain exactly one of line_start_pattern or line_end_pattern. These are regex patterns that
match either the beginning of a new log entry, or the end of a log entry.
The omit_pattern setting can be used to omit the start/end pattern from each entry.
Supported encodings
Other less common encodings are supported on a best-effort basis.
See https://www.iana.org/assignments/character-sets/character-sets.xhtml
for other encodings available.
async configuration
If set, the async configuration block instructs the udp_input operator to read and process logs asynchronously and concurrently.
note If async is not set at all, a single thread will read & process lines synchronously.
Additional Terminology and Features
- An entry is the base representation of log data as it moves through a pipeline. All operators either create, modify, or consume entries.
- A field is used to reference values in an entry.
- A common expression syntax is used in several operators. For example, expressions can be used to filter or route entries.
Parsers with Embedded Operations
Many parsers operators can be configured to embed certain followup operations such as timestamp and severity parsing. For more information, see complex parsers.Example Configurations
TCP Configuration:protocol: none when messages are delivered over the syslog transport but do not
conform to RFC3164 or RFC5424. The receiver still handles transport framing, but the
message contents are passed through unparsed in the message field. Octet counting can
be combined with none to frame messages on TCP:
Configuration
Example Configuration
Last generated: 2026-08-24