Sumo Logic Collectors start automatically at system startup. The Sumo Logic Collector installation directory comes with a set of scripts used to start, stop, and check the status of the Collector process (Linux/Unix) and service (Windows).
Manually restarting or stopping a Sumo Logic Collector requires root (Mac and Linux) or Administrator (Windows) privileges.
Linux, Solaris, Unix, and Mac
To start, stop, or check the status of the Collector, run one of the following commands from the Collector installation directory.
- sudo ./collector start
- sudo ./collector stop
- sudo ./collector status
- sudo ./collector restart
Use these commands to install, start, or stop the Collector as a service, respectively.
You can start and stop the Collector with a Windows NET.EXE command since the Collector runs as a Windows service.
- net start sumo-collector
- net stop sumo-collector
As of version 19.216-33 (released in May 2018) the Sumo Logic Collectors use SystemD as the default init service on any Linux distributions that support SystemD, so the Collector should already be using SystemD if they are on a version later than this.
You can then start/stop/restart the service with the following commands.
- sudo systemctl stop collector.service
- sudo systemctl start collector.service