linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* secure file
@ 2007-01-09 18:06 Kirkwood, David A.
  2007-01-10 19:01 ` kalinix
  0 siblings, 1 reply; 4+ messages in thread
From: Kirkwood, David A. @ 2007-01-09 18:06 UTC (permalink / raw)
  To: linux-admin


I am using the RHEL4 disribution, update 4.


>Kirkwood, David A. wrote:

>> What causes the secure logs to be rotated as in /var/log/secure? I
don't
>> see any entries in crontab.

>How log rotation is handled varies between distributions, so you need
>to say which distribution you are using (or ask on a list for that
>particular distribution).

>If you're using newsyslog (not to be confused with syslog-ng), that
>has built-in log rotation.

>-- 
>Glynn Clements <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: secure file
  2007-01-09 18:06 secure file Kirkwood, David A.
@ 2007-01-10 19:01 ` kalinix
  2007-01-10 19:15   ` Axl Purushu
  0 siblings, 1 reply; 4+ messages in thread
From: kalinix @ 2007-01-10 19:01 UTC (permalink / raw)
  To: Kirkwood, David A.; +Cc: linux-admin

On Tue, 2007-01-09 at 13:06 -0500, Kirkwood, David A. wrote:
> I am using the RHEL4 disribution, update 4.
> 
> 
> >Kirkwood, David A. wrote:
> 
> >> What causes the secure logs to be rotated as in /var/log/secure? I
> don't
> >> see any entries in crontab.
> 
> >How log rotation is handled varies between distributions, so you need
> >to say which distribution you are using (or ask on a list for that
> >particular distribution).
> 
> >If you're using newsyslog (not to be confused with syslog-ng), that
> >has built-in log rotation.
> 
> >-- 
> >Glynn Clements <glynn@gclements.plus.com>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


Here you are:


/etc/cron.daily/logrotate
/etc/logrotate.conf
and man logrotate





Calin Cosma

=================================================
Q: Why did the tachyon cross the road? A: Because it was on the other
side.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: secure file
  2007-01-10 19:01 ` kalinix
@ 2007-01-10 19:15   ` Axl Purushu
  2007-01-10 19:37     ` Kirkwood, David A.
  0 siblings, 1 reply; 4+ messages in thread
From: Axl Purushu @ 2007-01-10 19:15 UTC (permalink / raw)
  To: kalinix; +Cc: Kirkwood, David A., linux-admin

Hi Kirk,

Logrotation is handled by logrotate. 
/etc/logrotate.d
root@XXXXXX [/etc/logrotate.d]# ls
./   acpid  bfd   exim   mgetty  named  psacct  samba  squid   tux      
vsftpd.log
../  apf    cups  httpd  mysql   ppp    rpm     snmpd  syslog  up2date
root@XXXXXX [/etc/logrotate.d]# cat syslog
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron 
{
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || 
true
    endscript
}

The cron may be in /etc/cron.daily/logrotate

-Anup

On Thursday 11 January 2007 00:31, kalinix wrote:
> On Tue, 2007-01-09 at 13:06 -0500, Kirkwood, David A. wrote:
> > I am using the RHEL4 disribution, update 4.
> >
> > >Kirkwood, David A. wrote:
> > >> What causes the secure logs to be rotated as in /var/log/secure? I
> >
> > don't
> >
> > >> see any entries in crontab.
> > >
> > >How log rotation is handled varies between distributions, so you need
> > >to say which distribution you are using (or ask on a list for that
> > >particular distribution).
> > >
> > >If you're using newsyslog (not to be confused with syslog-ng), that
> > >has built-in log rotation.
> > >
> > >--
> > >Glynn Clements <glynn@gclements.plus.com>
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> Here you are:
>
>
> /etc/cron.daily/logrotate
> /etc/logrotate.conf
> and man logrotate
>
>
>
>
>
> Calin Cosma
>
> =================================================
> Q: Why did the tachyon cross the road? A: Because it was on the other
> side.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
-Axl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: secure file
  2007-01-10 19:15   ` Axl Purushu
@ 2007-01-10 19:37     ` Kirkwood, David A.
  0 siblings, 0 replies; 4+ messages in thread
From: Kirkwood, David A. @ 2007-01-10 19:37 UTC (permalink / raw)
  To: linux-admin

Thanks for all the answers. I didn't know about the crontab file in
/etc, or the /etc/cron.daily for that matter. I was only looking in
/var/spool. Another didn't RTFM error.

David 


Hi Kirk,

Logrotation is handled by logrotate. 
/etc/logrotate.d
root@XXXXXX [/etc/logrotate.d]# ls
./   acpid  bfd   exim   mgetty  named  psacct  samba  squid   tux      
vsftpd.log
../  apf    cups  httpd  mysql   ppp    rpm     snmpd  syslog  up2date
root@XXXXXX [/etc/logrotate.d]# cat syslog
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
/var/log/boot.log /var/log/cron 
{
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2>
/dev/null || 
true
    endscript
}

The cron may be in /etc/cron.daily/logrotate

-Anup

On Thursday 11 January 2007 00:31, kalinix wrote:
> On Tue, 2007-01-09 at 13:06 -0500, Kirkwood, David A. wrote:
> > I am using the RHEL4 disribution, update 4.
> >
> > >Kirkwood, David A. wrote:
> > >> What causes the secure logs to be rotated as in /var/log/secure?
I
> >
> > don't
> >
> > >> see any entries in crontab.
> > >
> > >How log rotation is handled varies between distributions, so you
need
> > >to say which distribution you are using (or ask on a list for that
> > >particular distribution).
> > >
> > >If you're using newsyslog (not to be confused with syslog-ng), that
> > >has built-in log rotation.
> > >
> > >--
> > >Glynn Clements <glynn@gclements.plus.com>
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> Here you are:
>
>
> /etc/cron.daily/logrotate
> /etc/logrotate.conf
> and man logrotate
>
>
>
>
>
> Calin Cosma
>
> =================================================
> Q: Why did the tachyon cross the road? A: Because it was on the other
> side.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin"
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
-Axl

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-10 19:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-09 18:06 secure file Kirkwood, David A.
2007-01-10 19:01 ` kalinix
2007-01-10 19:15   ` Axl Purushu
2007-01-10 19:37     ` Kirkwood, David A.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).