Logrotate
Your Ultra.cc service offers a wide range of applications available for installation via the User Control Panel. To make troubleshooting easier, we have created an unofficial utility tool that centralizes the log files of your applications by symlinking them into a single directory. In this guide, we will show you how to install app-logrotate and how it works.
Installation
- Connect to your Ultra service via SSH.
- Once connected, execute the following command:
app-logrotate install- If the installation was successful, you should see the following output in your terminal:
{"data": {"message": "Logrotate symlinks created successfully"}, "result": true}Usage
A Systemd timer is activated once a week and applies logrotation to the symlinked logs of your installed applications. It keeps two copies, and it activates when each log file reaches over 500MB in size.
- The symlinked logs can be located in
~/.local/appslogs - The configuration file can be located in
~/.config/logrotate.conf
Uninstallation
- Connect to your Ultra service via SSH.
- Once connected, execute the following command:
app-logrotate uninstall- If the uninstallation was successful, you should see the following output in your terminal:
{"data": {"message": "Logrotate symlinks deleted successfully"}, "result": true}If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server
- Logrotate
- Installation
- Usage
- Uninstallation