.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "SCANLOGS 8" .TH SCANLOGS 8 2024-04-01 "INN 2.7.2" "InterNetNews Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME scanlogs \- Summarize and rotate INN log files .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBscanlogs\fR [\fBnorotate\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBscanlogs\fR summarizes the information recorded in the INN log files which reside in the \fIpathlog\fR directory set in \fIinn.conf\fR (see newslog(5) for further details about these log files). It is normally invoked by the news.daily(8) script which performs daily server maintenance tasks. .PP It invokes \f(CW\*(C`ctlinnd flushlogs\*(C'\fR to close the news and error log files, rename them to add \f(CW\*(C`.old\*(C'\fR to the file names and open fresh news and error logs; the \fIactive\fR file is also flushed to disk, along with the history database. .PP By default, \fBscanlogs\fR rotates and cleans out the logs. It keeps up to \&\fIlogcycles\fR old compressed log files in \fIpathlog\fR/OLD (the \fIlogcycles\fR parameter can be set in \fIinn.conf\fR). \fBscanlogs\fR also keeps archives of the \fIactive\fR file in this directory. .PP It invokes \fBtally.control\fR if \fInewgroup.log\fR or \fIrmgroup.log\fR exists in \fIpathlog\fR (see the \fIcontrol.log\fR entry of newslog(5) for more information about that). .PP \&\fBscanlogs\fR displays the first 50 lines of \fIerrlog\fR, \fInews.err\fR and \fInews.crit\fR, if non-empty, and runs \fBinnreport\fR to summarize the contents of \fInews\fR, \fInews.notice\fR and \fIperl\-nocem.log\fR, and to update the \&\fIunwanted.log\fR file amongst other things (see more information about that in innreport(8)). .SH OPTIONS .IX Header "OPTIONS" Only one option is currently accepted: .IP \fBnorotate\fR 4 .IX Item "norotate" Using this option disables the rotating and cleaning aspect of the log processing: the logs files are only scanned for information and no contents are altered. If \fBscanlogs\fR is invoked more than once a day, the \fBnorotate\fR option should be used to prevent premature log cleaning. .SH FILES .IX Header "FILES" See newslog(5) for the list of log files processed by \fBscanlogs\fR. .SH HISTORY .IX Header "HISTORY" Written by Landon Curt Noll and Rich $alz for InterNetNews. Converted to POD by Julien Elie. .SH "SEE ALSO" .IX Header "SEE ALSO" inn.conf(5), innreport(8), news.daily(8), newslog(5), shlock(1), tally.control(8).