This playbook will install Sumo Logic Distro of OpenTelemetry Collector on both Linux/Mac and Windows hosts.
- Must be a Linux/Mac environment
- On Windows, use WSL (Windows Subsystem for Linux) with Ansible installed
- Windows Hosts:
- PowerShell 5.1 or later
- WinRM enabled and accessible from the controller
- Ansible user must have administrative privileges
-
Get an installation 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 '{"installation_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-playbookwith--ask-become-pass(-Kfor short).
installation_token: Sumo Logic installation 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 Collectorremotely_managed: enables creation of remotely managed Sumo Logic Distribution for OpenTelemetry Collector. Disabled by default.opamp_api_url: Sumo Logic Opamp API url. You shouldn't need to set this in most normal circumstances.