Console Sink
The Vector console
sink
sends logs and metrics to
STDOUT.
Configuration
- Common
- Advanced
- vector.toml
- vector.yaml
- vector.json
[sinks.my_sink_id]# Generaltype = "console" # requiredinputs = ["my-source-or-transform-id"] # requiredtarget = "stdout" # optional, default# Encodingencoding.codec = "json" # required
- requiredtable
encoding
Configures the encoding specific sink behavior.
- requiredstring
codec
The encoding codec used to serialize the events before outputting.
- View examples
- optionalstring
target
The standard stream to write to.
- Default:
"stdout"
- Enum, must be one of:
"stdout"
"stderr"
- View examples
- Default:
Telemetry
This component provides the following metrics that can be retrieved through
the internal_metrics
source. See the
metrics section in the
monitoring page for more info.
- counter
processing_errors_total
The total number of processing errors encountered by this component. This metric includes the following tags:
component_kind
- The Vector component kind.component_name
- The Vector component ID.component_type
- The Vector component type.error_type
- The type of the errorinstance
- The Vector instance identified by host and port.job
- The name of the job producing Vector metrics.
- counter
processed_events_total
The total number of events processed by this component. This metric includes the following tags:
component_kind
- The Vector component kind.component_name
- The Vector component ID.component_type
- The Vector component type.file
- The file that produced the errorinstance
- The Vector instance identified by host and port.job
- The name of the job producing Vector metrics.
- counter
processed_bytes_total
The total number of bytes processed by the component. This metric includes the following tags:
component_kind
- The Vector component kind.component_name
- The Vector component ID.component_type
- The Vector component type.instance
- The Vector instance identified by host and port.job
- The name of the job producing Vector metrics.