While we have added support for configuration via YAML files in 6.3.0, the default method of configuration remains the use of environment variables set in the systemd unit file for the collector daemon. For example,
/etc/systemd/system/flowcoll.service.d/flowcoll.conf for the Unified Flow Collector binary flowcoll.
In a future release, the default configuration method will be via YAML files, as described on this page.
ElastiFlow now supports YAML configuration files for all binaries, with a default file location of
/etc/elastiflow/<binary_name>.yml. These YAML files are compatible with all existing ElastiFlow settings, which are documented in the Configuration Reference.
Although environment variables are still available for configuring the collector, the systemd attributes file may be removed in future releases.
To use a YAML file for configuration, either place it in the default location or specify a custom location with the
-c flag when running the binary:
Implementing YAML Configuration
This example demonstrates configuring logging settings for the ElastiFlow flow-collector binary using a
Create a new file called
flowcoll.ymlwith the following content.
Customize the settings as needed and create additional YAML files for other ElastiFlow binaries if required.
Run the flow-collector binary with the
--configflag, specifying the path to your
For more information on supported configurations, consult the Configuration Reference