Follow the steps in this topic to install or uninstall a collector on Linux. See Installed Collectors for information on other OSs.
- Linux, major distributions, 32-bit or 64-bit, or any generic Unix capable of running Java 1.8
- Single core, 512MB RAM
- 8GB disk space
Download the collector in either of the following ways:
- In Sumo Logic select Manage Data > Collection > Collection. Click Add Collector, click Installed Collector, and then click the link for the collector to begin the download.
- Open a browser and enter the static URL for your pod. If you're not sure which pod you're using, check the login page (US2, EU, AU, or DE appears in the URL for those pods; only US1 is not included in the URL). The download begins immediately. See Download a Collector from a Static URL for a list of the URLs for your Linux version and pod.
Install a collector on Linux
Choose one of these methods to install the collector:
After installing collectors, you can configure sources by using the Web Application or by providing the Source settings in a JSON file. If you are using a JSON file, you must provide the file before starting the collector.
Install using the UI installer
Run the installer on your server with root or Administrator privileges. If you are not logged in as root or Administrator, you might be prompted to reauthenticate to your system when you start the UI Installer.
- Open the downloaded installer file.
- If prompted, enter the root or Administrator user name and password for the system.
- Open the wizard to show the Welcome page. Click Next.
- Accept the license agreement and click Next.
- Browse to select a location for the collector or accept the default and click Next to install the collector files on your machine.
- The Installer displays the summary of the default settings. If you want to change any of these, click Advanced UI Installer Settings and follow the instructions. Click Next.
- Choose an authentication method.
- Setup Wizard Token: If Sumo Logic has provided you with a token for the UI Installer, click Next, enter the token, and click Next.
- Access Key: If you have a Sumo Logic access ID and key, click Next, enter the access ID and key, and click Next.
- Click Finish to complete the setup.
- In Sumo Logic select Manage Data > Collection > Collection and verify that you can see the collector. Look for the name that is listed as Collector Name in the confirmation step of this procedure (the name can be customized under Advanced Settings). If a collector with that name already exists, a suffix is appended to uniquely identify it. If you don’t see the collector, check the Error Codes list to help troubleshoot.
Install using the command line installer
- Add execution permissions to the downloaded collector file (.sh):
chmod +x SumoCollector.sh
- Run the script with the parameters that you want to configure. See Parameters for the Command Line Installer for a description of the parameters. By default the collector will be installed in either /opt/SumoCollector or /usr/local/SumoCollector.
Using access ID and access key:
sudo ./SumoCollector.sh -q -Vsumo.accessid=<accessId> -Vsumo.accesskey=<accessKey>
Adding proxy settings:
sudo ./SumoCollector.sh -q -Vsumo.accessid=<accessId> -Vsumo.accesskey=<accessKey> -Vproxy.host=<proxyHost> -Vproxy.port=<proxyPort>
Including syncSources and customized collector name:
sudo ./SumoCollector.sh -q -Vsumo.accessid=<accessId> -Vsumo.accesskey=<accessKey> -VsyncSources=<filepath> -Vcollector.name=<name>
Install using the RPM or Debian package
You can use the RPM or Debian package to install a collector on a Linux 64-bit system.
- Install the collector using the downloaded installation package.
For the RPM package, use the command:
sudo rpm -i SumoCollector-19.XXX-XX.x86_64.rpmFor the Debian package, use the command:
sudo dpkg -i SumoCollector-19.XXX-XX.x86_64.debThe RPM and Debian packages install the collector in the /opt/SumoCollector directory. By default, the collector is installed as a system service, but not yet started.
Configure the collector user.properties file in the /opt/SumoCollector/config/ directory. The collector uses the settings defined in user.properties to register and start up. Add entries in the following format for registration and start-up using access ID and access key for authentication.
Example user.properties file:
name = [My Collector] accessid = [accessId] accesskey = [accessKey]
See user.properties for a full list of all the supported parameters.
- (Optional) Set the run a user for the collector if you want the collector to run as a user other than root. See this FAQ topic for details.
- Start the collector using the following command.
sudo service collector start
Install using the binary package
- Install the version of JRE you want to use from the following location. (The collector requires Java 8 or higher). The binary installation process does not include JRE installation.
- Untar the downloaded binary file inside your desired destination directory to create a /sumocollector directory:
tar -xvf SumoCollector_unix_XXX.tar.gz
- Copy the platform-specific wrapper file to the /sumocollector directory:
- Make the wrapper and collector files executable:
chmod ug+x wrapper chmod ug+x collector
Create the user.properties file and add the settings you want to specify for the installation.
This example user.properties file configures basic settings for registration and start-up using the access ID and key for authentication.
name = My Collector accessid = [accessId] accesskey = [accessKey] wrapper.java.command = java
See user.properties for a full list of all the parameters that you can add to the file.
- (Optional) Provide the JSON Source information.
The Collector Management API allows you to pass all source settings in a JSON file, including source name, metadata tags, and pointer to the files you want to collect. If you are using a JSON file, you must provide the file before starting the collector. See Using JSON to configure Sources.
Alternatively, you can configure sources at any time by using the Sumo web app. See Sources.
- (Optional) Set the run as user for the collector if you want the collector to run as a user other than root. See this FAQ topic for details.
- Install the collector as a service.
Use the following command to install the collector as a service that is started when the machine starts.
sudo /sumocollector/collector install
- Start the collector service.
Use the following command to start the collector service.
sudo service collector start
- To verify that the collector is installed, go to Manage Data > Collection > Collection in the Sumo web app and verify that you can see the collector.
Uninstall the collector
Uninstalling a collector requires the following two steps:
- Uninstall the collector from the Linux system using any of these methods:
Uninstall using the UI Installer
- On your system, in the Applications folder, find the Sumo Logic Collector folder.
- Double-click the file Sumo Logic Collector Uninstaller.
- If prompted, select your language and click OK.
- Enter the user name and password for the system.
- When the Sumo Logic Collector Uninstall wizard is displayed, click Next to remove the collector.
- When the success message is displayed, click Finish.
Uninstall using the command line
- In a terminal prompt, change the directory to the collector installation directory. By default, the collector will be installed in either /opt/SumoCollector or /usr/local/SumoCollector.
- Run the uninstall binary with the -q option. The -q option executes the command without presenting additional prompts.
sudo ./uninstall -q
Uninstall using the RPM/Debian packages
For the RPM package, use the command:
sudo rpm -e SumoCollector
For the Debian package, use the command:
sudo dpkg -r SumoCollector
Uninstall using the binary package
- Uninstall the collector service.
sudo <Collector Installation Directory>/collector remove
- Remove the collector installation directory.
sudo rm -rf <Collector Installation Directory>
- (Optional) On some distributions, for instance, Ubuntu, you may need to re-synchronize the daemon setting before installing the collector again.
sudo systemctl daemon-reload
Remove the collector from the web app
- In Sumo Logic select Manage Data > Collection > Collection.
- Find the collector you want to remove, and click Delete.
- When the Confirm dialog displays, click OK.
A success message is displayed and the collector is removed from the list.