On Wed, 2004-02-25 at 09:55, Ako Ito wrote:
> hello sirs,
> how can i configure logrotate to include the date and hostname of the server
> on the generated logs? also can i configure it to generate daily logs but do
> not delete daily logs..
> ex. 2252004-example-apache2-access.log
> 2252004-example-tomcat4-localhost-access.log
>
> also can you recommend tools/scripts for rotating apache 2 and tomcat 4
> logs..
<forgive me, but just a wild guess>
/var/log/apache2_whereveritis/*log{
dateext
(ormaybe)
dateext `%m%d%y`
(imnotsure, ive just read the manfile an havent tried this)
daily: how about placing a "daily" command
in the config file. or /etc/cron.daily/logrotate
or by just manually running it?
delete: how bout mailing it to someone so you could
have a backup copy of the log.
eg. mailfirst [EMAIL PROTECTED]
bye
------------------
- stderr(Cagayan de Oro)
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie