Stop Sending Data to Loggly
To stop sending data to Loggly from your system(s)/application(s) please follow the instructions below. The specific uninstall instructions you should use depend on the method used to send logs to Loggly. If you used a script to configure logging, it’s easy to use the same script to stop sending your logs to Loggly.
Method 1: Uninstall Using the Loggly Script
Linux, Apache, Tomcat, Nginx, or Mac OS:
Uninstall is very straightforward using the same the script used during installation. Just run the script with the -r flag to remove the configuration.
For example: The Linux Configuration Script (Configure-linux.sh) could be used to uninstall Loggly as follows.
Step 1. Download the script again if you can’t find your copy.
curl -O https://www.loggly.com/install/configure-linux.sh
Step 2. Run:
sudo bash ./configure-linux.sh -a SUBDOMAIN -r
Replace subdomain with your own Loggly subdomain.
File Monitoring Script
sudo bash configure-file-monitoring.sh -a SUBDOMAIN -l FILE_ALIAS -r
Note: FILE_ALIAS is the same alias you chose when you set it up.
AWS S3 File Monitoring Script
sudo bash configure-s3-file-monitoring.sh -a SUBDOMAIN -s3l S3-BUCKET-ALIAS -r
Note: S3-BUCKET-ALIAS is the same alias you chose when you set it up.
Legacy Syslog-ng Configuration Script
To remove the changes made by the syslog configuration script, run
Method 2: Manual Uninstall
If you have used any manual instructions to log from our supported logging platforms, please remove any configuration that you added and restart the related service(s).
For example: If you followed the manual configuration such as Manually Configure Rsyslog or Syslog-ng you could uninstall by following the steps below.
- Check and remove the 22-loggly.conf file (or the ones you created for Loggly) under either /etc/rsyslog.d/ or /etc/syslog-ng/
- Restart the syslog process
- Check whether rsyslog or syslog-ng are running
Method 3: Uninstall Using Documentation
For other log sources you can follow the steps described in the documentation for your log source. Run the installation steps in reverse to undo any changes you made earlier. Additionally, if you are sending logs to Loggly from one of the sources listed in our catalog here, please refer to the instructions/readme for the library in use. They are maintained by the community and it’s best to check the latest instructions.
If you have any issue stopping the sending of logs to Loggly, please contact support or post/search in our community forum.