rotovanie logov
Matus fantomas Uhlar
uhlar na fantomas.sk
Úterý Květen 4 12:46:56 CEST 1999
Zdravim,
Kozo tusim minule zhanal nieco co by na 100% rotovalo logy a splitovalo kedy
treba...
Debian ma nineco taketo:
cronolog - Logfile rotator for web servers
A simple program that reads log messages from its input and writes them to
a set of output files, the names of which are constructed using template
and the current date and time. The template uses the same format
specifiers as the Unix date command (which are the same as the standard C
strftime library function).
It intended to be used in conjunction with a Web server, such as Apache, to
split the access log into daily or monthly logs:
TransferLog "|/usr/sbin/cronolog /var/log/apache/%Y/access.%Y.%m.%d.log"
A cronosplit script is also included, to convert existing
traditionally-rotated logs into this rotation format.
--
Matus "fantomas" Uhlar, sysadmin at Telenor Internet Kosice, Slovakia
BIC coord for *.sk; admin of netlab.irc.sk; co-admin of irc.felk.cvut.cz
"Where do you want to go to die?" [Microsoft]
Další informace o konferenci Linux