creating different syslog file /var/log/syslog.0 /var/log/syslog.1...

creating different syslog file /var/log/syslog.0 /var/log/syslog.1...

Post by prade » Thu, 24 Jul 2003 21:26:59



Hi,
I see different syslog files under /var/log/
/var/log/syslog.0
/var/log/syslog.1

Could anyone tell me whats the difference between syslog.* files.Are
they differ based on timestamp or something else.
I mean for today's syslogs, system uses syslog.0, for tommorrow's
syslog it uses syslog.1,is it?

Thanks for your help,
pradeep.

 
 
 

creating different syslog file /var/log/syslog.0 /var/log/syslog.1...

Post by Scott Howar » Thu, 24 Jul 2003 21:53:16



> Hi,
> I see different syslog files under /var/log/
> /var/log/syslog.0
> /var/log/syslog.1

> Could anyone tell me whats the difference between syslog.* files.Are
> they differ based on timestamp or something else.

man logadm

  Scott

 
 
 

creating different syslog file /var/log/syslog.0 /var/log/syslog.1...

Post by Anthony Mandi » Thu, 24 Jul 2003 22:34:12



> Could anyone tell me whats the difference between syslog.* files.Are
> they differ based on timestamp or something else.
> I mean for today's syslogs, system uses syslog.0, for tommorrow's
> syslog it uses syslog.1,is it?

        No. The current log is without a numeric extension. ".0" is
        the next oldest one, etc. Its a standard log rotation routine.
        The particular OS version you have determines what's doing the
        rotation but the files are usually a week apart. Examining the
        timestamps in the files should reveal this.

-am     ? 2003

 
 
 

creating different syslog file /var/log/syslog.0 /var/log/syslog.1...

Post by Sam » Fri, 25 Jul 2003 00:47:22



Quote:> Hi,
> I see different syslog files under /var/log/
> /var/log/syslog.0
> /var/log/syslog.1

> Could anyone tell me whats the difference between syslog.* files.Are
> they differ based on timestamp or something else.
> I mean for today's syslogs, system uses syslog.0, for tommorrow's
> syslog it uses syslog.1,is it?

> Thanks for your help,
> pradeep.

# man syslog
# man logrotate

cheers

Sam N

 
 
 

1. How large can /var/log/messages and /var/log/syslog get ?

My /var/log/messages is now over 3 meg, and my syslog is 200+ k. I'm
very curious how far is this going to go ?
Is there a way to restrict their sizes ?

cheers,
Hong Siang.
--
======================================================================
The sticker on the box said, "Windows 95, Windows NT 4.0, or better."
So I installed Linux.
======================================================================
Teo Hong Siang                                   Tel (H): (65)746 2598
Manager, DTG Development Office                      (O): (65)772 7114

2. Redhat fstool won't let me change file system type

3. How to close /var/log/syslog and /var/log/messages..

4. Where can I get Win 3.1

5. syslog, local7 & /var/log/boot.log

6. Linux Router

7. /var/log/syslog: Bad file number

8. Solaris 2.7, cannot compile with gcc

9. Odd /var/log/syslog message

10. Odd in.pop3d messages in /var/log/{messages,syslog}

11. solaris, /var/log/syslog no entries...

12. sshd error in /var/log/syslog

13. avoid syslog message in /var/log/messages