# OPTIONAL - Generaldata_dir = "/var/lib/vector" # example, no defaultdns_servers = ["0.0.0.0:53"] # example, no default# OPTIONAL - Log schema[log_schema]host_key = "host" # defaultmessage_key = "message" # defaulttimestamp_key = "timestamp" # default
The directory used for persisting Vector state, such as on-disk buffers, file checkpoints, and more. Please make sure the Vector project has write permissions to this dir. See Data Directory for more info.
The list of DNS servers Vector will use to resolve DNS requests. When set Vector will ignore the system configuration and use only the list of DNS servers provided. If this option is not set then Vector will attempt to use the system configuration.
The default log schema that all Vector components operate on. See the log data model page for more info.
The key used to hold the log host. See the log data model page for more info.
The key used to hold the log message. See the log data model page for more info.
The key used to represent when the log was generated. See the log data model page for more info.
How It Works
Vector requires a
data_dir value for on-disk operations. Currently, the only
operation using this directory are Vector's on-disk buffers. Buffers, by
default, are memory-based, but if you switch them to disk-based you'll need to