Skip to main content

Installing Collector on Linux

Follow the steps in this topic to install or uninstall an OpenTelemetry Collector on Linux. See OpenTelemetry Collector for information on other operating systems.

System Requirements​

The Sumo Logic OpenTelemetry Collector is supported on both amd64 and arm64 architectures.

Minimal resource requirements are the following:

  • 200 MB of disk space
  • 64 MB of RAM

Supported Versions

  • RHEL (7-9), Debian (9-11), Ubuntu (18-22), SUSE (ES12, ES15), Amazon Linux 2, CentOS (7, 8)


You can install our OpenTelemetry Collector using one of the following methods:

UI Installation

  1. In Sumo Logic, select Manage Data > Collection > OpenTelemetry Collection.
  2. On the OpenTelemetry Collection page, click Add Collector.
  3. On the left panel, select Linux as the platform.
  4. Select/create installation token and customize your tags.
  5. (Optional) Select the Auto Configure Host and Process metrics data collection checkbox to collect host and process metrics.
  6. Copy the command and execute it in your system terminal where the collector needs to be installed.
    execute command in terminal
  7. Wait for the installation process to complete, then click Next to proceed.

Install Script

1. Get the Installation token

Get your installation token if you don't have it already and assign it to an environment variable:


2. Run the Installation script

You can run the script in two ways:

  • By piping curl straight into bash:
    curl -Ls | sudo -E bash -s -- --tag "" --tag "deployment.environment=default"
  • By first downloading the script, inspecting its contents for security, and then running it:
    curl -Lso
    sudo -E bash ./

The -E argument to sudo is needed to preserve the SUMOLOGIC_INSTALLATION_TOKEN environment variable in sudo session.

This will perform the following operations:

  • Install or upgrade operation by placing the latest version as /usr/local/bin/otelcol-sumo
  • Get static configuration and place it as /etc/otelcol-sumo/sumologic.yaml
  • Create user configuration directory (/etc/otelcol-sumo/conf.d) with common.yaml file which will contain installation token
  • For Systemd:
    • The script will get Systemd service configuration and place it as /etc/systemd/system/otelcol-sumo.service
    • Create a otelcol-sumo user and group that will be used to run the service
    • Enable otelcol-sumo service
    • Start otelcol-sumo service

3. Script Options

The following arguments can be passed to the script:

long nameshort namedescriptiontakes value
--skip-installation-tokenkSkips requirement for installation token. This option do not disable default configuration creation.No
--tagtSets tag for collector. This argument can be use multiple times. One per tag.Yes, in key=value format
--download-onlywDownload new binary only and skip configuration part.No
--versionvVersion of Sumo Logic Distribution for OpenTelemetry Collector to install. By default, it gets latest version.Yes, e.g. 0.71.0-sumo-0
--skip-configsDo not create default configurationNo
--skip-systemddPreserves from Systemd service installation.No
--fipsfInstall the FIPS-compliant binary. See FIPS section for more details.No
--install-hostmetricsHInstall the hostmetrics configuration to collect host metrics.No
--yesyDisable confirmation asks.No
--uninstalluRemoves Sumo Logic Distribution for OpenTelemetry Collector from the system and disable Systemd service eventually. Use with --purge to remove all configurations as well.No
--purgepIt has to be used with --uninstall. It removes all Sumo Logic Distribution for OpenTelemetry Collector related configuration and data.No
--helphPrints help and usage.

The following env variables can be used along with script:


Manual step-by-step Installation

Step 1. Download the Binary

Examples for OpenTelemetry Collector version 0.73.0-sumo-0.

curl -sLo otelcol-sumo \

Step 2. Move the binary to your PATH environment

Move the downloaded binary into a directory from your PATH environment, so that it can be used by simply invoking otelcol-sumo.

chmod +x otelcol-sumo
sudo mv otelcol-sumo /usr/local/bin/otelcol-sumo

Step 3. Verify the Installation

To verify installation, run the OpenTelemetry Collector.

otelcol-sumo --version

Step 4. Run OpenTelemetry Collector as Systemd Service

We recommend using the installation script as it supports the Systemd scenario. This section describes how to install it manually.


Ensure that the user who will run the otelcol-sumo process has access to any directories used in your configuration within the filesystem.

For example, if you use the file_storage extension in your configuration like this:

directory: /var/lib/otelcol/mydir
timeout: 1s

Then the user running the process must have access to /var/lib/otelcol/mydir.

To run OpenTelemetry Collector as Systemd Service, follow the steps below:

  1. Ensure that otelcol-sumo has been installed into /usr/local/bin/otelcol-sumo by running this command.
    /usr/local/bin/otelcol-sumo --version
  2. Create configuration, follow the steps below.
    1. Get recommended configuration from Sumo Logic repository and save it as /etc/otelcol-sumo/sumologic.yaml.
    2. Create your custom configuration file in the /etc/otelcol-sumo/conf.d directory. For example, you can create a file called common.yaml in this directory to store your custom configuration, like this /etc/otelcol-sumo/conf.d/common.yaml.

      It is recommended to limit access to the configuration file as it contains sensitive information.

    3. You can change the access permissions to the configuration file by running the following command:
      mkdir -p /etc/otelcol-sumo/{conf.d,env}
      chmod 551 /etc/otelcol-sumo /etc/otelcol-sumo/{conf.d,env}
      chmod 440 /etc/otelcol-sumo/conf.d/common.yaml /etc/otelcol-sumo/sumologic.yaml
  3. Create user and group to run OpenTelemetry by running the following command:
    sudo useradd -mrUs /bin/false -d /var/lib/otelcol-sumo otelcol-sumo
    • This command will create a home directory for the user. By default, the sumologic extension stores the credentials in a subdirectory of the home directory. However, if the user with name otelcol-sumo already exists, it won't be overwritten, so you should make sure that a home directory has been created for this user. If you don't want the user to have a home directory, use useradd with the M flag instead of m (sudo useradd -MrUs ...) and explicitly change the directory for saving the credentials. For example:
      # ...
      collector_credentials_directory: /var/lib/otelcol-sumo/credentials
      For more information, refer to the sumologic extension documentation.
  4. Ensure that the configuration can be accessed by otelcol-sumo user which will be used to run the service by running this command.
    $ sudo find /etc/otelcol-sumo/ -type 'f' | sudo xargs ls -al
    -r--r----- 1 otelcol-sumo otelcol-sumo 48 Feb 16 09:00 /etc/otelcol-sumo/conf.d/common.yaml
    -r--r----- 1 otelcol-sumo otelcol-sumo 4569 Feb 16 09:00 /etc/otelcol-sumo/sumologic.yaml
  5. Verify if OpenTelemetry collector runs without errors by running this command:
    sudo su -s /bin/bash otelcol-sumo -c '/usr/local/bin/otelcol-sumo --config /etc/otelcol-sumo/sumologic.yaml --config "glob:/etc/otelcol-sumo/conf.d/*.yaml"'
  6. Get service file and save as /etc/systemd/system/otelcol-sumo.service:
    curl | sudo tee /etc/systemd/system/otelcol-sumo.service

    Adjust memory configuration to your setup.

  7. Enable autostart of the service by running the following command:
    sudo systemctl enable otelcol-sumo
  8. Start service and check status by running the following command:
    sudo systemctl start otelcol-sumo
    sudo systemctl status otelcol-sumo # checks status
    sudo journalctl -u otelcol-sumo # checks logs

Using Environmental variable to store Installation token

We recommend keeping the install token in environmental variable for Systemd installation:

  1. Ensure that the service file /etc/systemd/system/otelcol-sumo.service contains EnvironmentFile=-/etc/otelcol-sumo/env/*.env by running this command.
    $ sudo cat /etc/systemd/system/otelcol-sumo.service
  2. Ensure that the /etc/otelcol-sumo/env directory exists by running this command.
    sudo mkdir -p /etc/otelcol-sumo/env
  3. Create /etc/otelcol-sumo/env/token.env directory with your installation token. In this example, we use SUMOLOGIC_INSTALLATION_TOKEN, as it will be automatically used by the recommended configuration.
  4. Ensure that the file has the correct owner and permissions by running this command.
    sudo chmod 440 /etc/otelcol-sumo/env/token.env
    sudo chown otelcol-sumo:otelcol-sumo /etc/otelcol-sumo/env/token.env
  5. Remove install_token overrides from /etc/otelcol-sumo/conf.d/*.yaml. You can find them using the following command:
    $ sudo grep -Rn install_token /etc/otelcol-sumo/conf.d
    /etc/otelcol-sumo/conf.d/common.yaml:3: install_token: <some token>
  6. Restart otelcol-sumo service by running this command.
    sudo systemctl restart otelcol-sumo

Running Binary Manually

If your system does not support Systemd, or you don't want to create a service, you can run Collector manually.

sudo otelcol-sumo --config=/etc/otelcol-sumo/sumologic.yaml --config "glob:/etc/otelcol-sumo/conf.d/*.yaml"

Additional Settings

This section describes common OpenTelemetry customizations.

Using Proxy

Exporters leverage the HTTP communication and respect the following proxy environment variables:


You may either export proxy environment variables locally, for example:


or make them available globally for all users, e.g.

tee -a /etc/profile << END

To exclude a specific domain or IP address from using the proxy, you can add it to the NO_PROXY environment variable. For example, to exclude the domain from using the proxy, you can add the following command:



For Systemd service, the variables can be placed in /etc/otelcol-sumo/env/proxy.env, as default configuration (EnvironmentFile=-/etc/otelcol-sumo/env/*.env) will load them automatically. Service need to be restarted in order to apply the changes.


To install FIPS compliant binary, you should add --fips switch to installation command, so it will look like the following:

curl -Ls | SUMOLOGIC_INSTALLATION_TOKEN="TOKEN" sudo -E bash -s -- --tag "" --tag "deployment.environment=default" --fips && sudo otelcol-sumo --config=/etc/otelcol-sumo/sumologic.yaml --config "glob:/etc/otelcol-sumo/conf.d/*.yaml"

Refer to BoringCrypto and FIPS compliance in our repository for more details.


The recommended way to uninstall the OpenTelemetry Collector depends on how you installed it.

Install Script

If you installed the Collector with the install script, you can this command to uninstall the Collector:

curl -Ls | sudo -E bash -s -- -u -y

You can also use flag -p to remove all existing configurations as well:

curl -Ls | sudo -E bash -s -- -u -y -p

Manual step-by-step Uninstall

If you installed the Collector manually, simply remove the binary from the directory you have placed it in by running the following command:

sudo rm /usr/local/bin/otelcol-sumo

Upgrading the Collector

Upgrade OpenTelemetry Collector

First, you have to upgrade the Collector's version. The way you should do it, depends on how you installed it.

Install Script

Running install script will simply upgrade collector to the latest version:

curl -Ls | sudo bash

You need to restart collector process manually in order to apply changes.

Manual step-by-step Installation

If you installed the Collector manually, the simplest way to upgrade is to follow these steps:

Update your Config

After an upgrade, you should make sure that your config for OpenTelemetry Collector is up to date.

To see changes in upstream OpenTelemetry components, refer to the core changelog and contrib changelog.

List of breaking changes specific to Sumo Logic Distribution of OpenTelemetry Collector can be found here.


For information on troubleshooting and solutions, refer to Troubleshooting.

Privacy Statement
Terms of Use

Copyright © 2023 by Sumo Logic, Inc.