Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucascoelhof/ros_logrotate
A logrotate script for ROS log folders
https://github.com/lucascoelhof/ros_logrotate
logrotate logrotate-utility ros
Last synced: about 8 hours ago
JSON representation
A logrotate script for ROS log folders
- Host: GitHub
- URL: https://github.com/lucascoelhof/ros_logrotate
- Owner: lucascoelhof
- Created: 2017-12-02T19:11:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T18:44:54.000Z (over 5 years ago)
- Last Synced: 2024-08-03T02:02:35.385Z (3 months ago)
- Topics: logrotate, logrotate-utility, ros
- Homepage:
- Size: 3.91 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ros-tools - ros_logrotate - logrotate script allows you to control the size of your log files and make your ROS log folder cleaner. It will compress old folders and remove them after some days. This script is configuarable and you can set the number of days you want to keep files. Plus, it will also clean log files from terminal calls, like rostopic pub or rosservice call. ![ros_logrotate](https://img.shields.io/github/stars/lucascoelhof/ros_logrotate.svg?style=flat&label=Star&maxAge=86400) (Development Tools)
README
# ros_logrotate
Have you ever noticed that your ROS log folder grows indefinitely? In production applications, this can generate gigabytes of data full of old and useless log files.
This logrotate script allows you to control the size of your log files and make your ROS log folder cleaner. It will compress old folders and remove them after some days. This script is configuarable and you can set the number of days you want to keep files. Plus, it will also clean log files from terminal calls, like rostopic pub or rosservice call.
# Usage
Install logrotate, if you don't have it. Most of Linux distribuitions come with it by default, but you can install it by running:
```
sudo apt-get install logrotate
```
Make sure also you have cron installed if you want this logrotate script to run regularly.Then, please read the [logrotate_ros](logrotate_ros) file. It has some comments and you might need to change some stuff yourself. After doing your changes, drop this file at /etc/logrotate.d. Everything should work fine now.
# Problems?
Feel free to fill an issue ticket [here](https://github.com/lucascoelhof/ros_logrotate/issues)