Internal Logs
Configuration Options
Required Options
type(required)
The component type. This is a required field for all components and tells Vector which component to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["internal_logs"] |
Advanced Options
host_key(optional)
The key name added to each event representing the current host. This can also be globally set via the
global host_key
option.
Set to "" to suppress this key.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | host |
pid_key(optional)
The key name added to each event representing the current process ID.
Set to "" to suppress this key.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | pid |
How it Works
Logs are limited by startup options
At startup, the selection of log messages generated by Vector is determined by a
combination of the LOG
environment variable and the --quiet
and --verbose
command-line options. The internal_logs
source only receives logs that are generated by these options.
State
This component is stateless, meaning its behavior is consistent across each input.
Context
By default, the internal_logs
source augments events with helpful
context keys.