- Documentation
Torch Log Service
User Guide
Data collection
LogCollector collection
LogCollector plugins
Add field plugin
LogCollector plugins
Add field plugin
Add field plugin
You can use the add_kvs plugin to specify fields for LogCollector to add in the logs.
Notice
- The add_kvs plugin is supported by LogCollector V1.0.18 and later versions. To view LogCollector version, see 2. View software version.
- The add_kvs plugin processor supports adding environment variable fields from the host or container running LogCollector to logs. When adding environment variable fields, you can customize the field name (key). Set the field value to ${ENV_NAME}. TLS will automatically read the environment variable name and fill in the value. If the host or container running LogCollector does not have the environment variable ENV_NAME, the value is empty.
Parameters description
Configuration examples
- LogCollector plugin processor configuration
Last updated: 2025.12.05 15:26:14