[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Logrotate Newbie Question



Here is the RH 6.0 /etc/logrotate.conf file:

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# send errors to root
errors root

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/lastlog {
    monthly
    rotate 1
}

# system-specific logs may be configured here


This is execd thusly: /usr/sbin/logrotate /etc/logrotate.conf
RH 6.0 placed this in the /etc/cron.daily/logrotate file.

----- Original Message -----
From: Timo Saarto <tsaarto cc hut fi>
To: <redhat-list redhat com>
Sent: Wednesday, September 08, 1999 11:29 AM
Subject: Re: Logrotate Newbie Question


> >I would post again and ask what I want to do
>
> Alan
>
> thank You for answering. Let me rephrase my question and problem:
>
>
> I have been running RH 5.2 for about 3 months now.
> Being careful and responsible net-phile, (however whose enthusiasm
> shadows actual skills), I go thru my logfiles every day. However,
> I have found that my logfiles grow unconfortably large, and therefore
I
> suspect logrotate-config is not set up properly. As stated, I have RH
5.2
> CD installed with most options at default, and am really lost as how
to make
> logs rotate and make it easier to follow my machines whereabouts.
>
> I have studied "man logrotate " and not really find anything helpful-
> except that maybe I need to retune all cronjobs.
>
> I have crond running and /etc/cron stuff looks reasonable, so that's
why
> my interest is towards logrotate.conf and different options.
>
> Now I need to find some sample logrotate- and cronjobs to understand
what's
> going on.
>
> Could someone help me out ??
>
>
>
> --
> To unsubscribe: mail redhat-list-request redhat com with "unsubscribe"
> as the Subject.
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]