This playbook will install Sumo Logic Distro of OpenTelemetry Collector.
-
Get an install token from Sumo Logic, see
-
Prepare configuration file for Sumo Logic Distribution for OpenTelemetry Collector and put the file in a directory of your choice. You can put multiple configuration files in this directory, and all of them will be used.
NOTE: The playbook will prepare a base configuration for you, and configure the extension as well.
-
Customize inventory file and add your host
-
Run the playbook, passing the prepared values via the command line:
ansible-playbook -i inventory install_sumologic_otel_collector.yaml \ -e '{"install_token": "<your_token>", "collector_tags": {"tag_name": "tag_value"}, "src_config_path": "<your_config_path>"}'
Notice: If you need to specify a password for sudo, run
ansible-playbook
with--ask-become-pass
(-K
for short).
install_token
: Sumo Logic install tokencollector_tags
: Collector tags, these are applied to all processed dataapi_url
: Sumo Logic API url. You shouldn't need to set this in most normal circumstances.version
: version of Sumo Logic Distribution for OpenTelemetry Collector. The default is the latest stable version.systemd_service
: enables creation of Systemd Service for Sumo Logic Distribution for OpenTelemetry Collector. Enabled by default. Note that this playbook will not start the collector if you disable this.src_config_path
: path to configuration directory for Sumo Logic Distribution for OpenTelemetry Collector