.\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 51 Franklin Street, Fifth Floor, .\" Boston, MA 02110-1301 USA. .\" .TH "RECAPLOG" "8" "Aug 18, 2017" .SH NAME .PP recaplog \- Handles the logs generated by recap; compressing and/or deleting log files. .SH SYNOPSIS .BR "recaptool " "[\-n|\-v|\-h|\-V]" .SH DESCRIPTION recaplog is a user\-configurable script that runs periodically out of cron or systemd.timer to compress recap log files older than one day, and delete log files older than a configurable amount of days, recaplog will not produce output if a tty is not found, this is useful when running from cron. .SH OPTIONS .TP .BR "\-h, \-\-help" .BR "" "Print out the help." .TP .BR "\-n, \-\-dry\-run" .BR "" "Performs a dry run, implies verbose." .TP .BR "\-v, \-\-verbose" .BR "" "Prints to stdout." .TP .BR "\-V, \-\-version" .BR "" "Print version and exit." .SH SETTINGS These can be modified via the config file. .TP .BI LOG_COMPRESS .BR "" "Enables(1) or disables(0) log compression." .BR "(default: 1)" .TP .BI LOG_EXPIRY .BR "" "Number of days held for the logs." .BR "(default: 15)" .SH FILES .nf /etc/recap.conf \- The configuration file. /etc/cront.d/recap \- The cronjob file. /usr/lib/systemd/systemd/recaplog.{service,timer} \- Unit files for recaplog. /var/log/recap/recaplog.log \- The recaplog file. .SH "REPORTING BUGS" Bugs and issues to be submitted via github . .SH AUTHOR The recap scripts are maintained by Rackspace, the list of contributors is available at https://github.com/rackerlabs/recap/blob/master/CHANGELOG.md#contributors. .SH "SEE ALSO" .BR recap.conf (5), .BR recap (8), .BR crontab (5), .BR systemd.timer (5)