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

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

Post by Teo Hong Sia » Fri, 26 Sep 1997 04:00:00



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

 
 
 

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

Post by Laussy Fabric » Fri, 26 Sep 1997 04:00:00



> Is there a way to restrict their sizes ?

erase

--
Fabrice Laussy



 
 
 

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

Post by Dirk Geschk » Fri, 26 Sep 1997 04:00:00



> 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 ?

You can simply copy the files like this:

cp messages messages.old
cp /dev/null messages

This creates the new file messages.old and reduces the size of messages
to zero. Now you can zip the old file or simply remove it if you don't
need it. The second line is necessary to keep syslogd logging the
messages. This procedure could also be done with the other files which
are used by syslogd,

Dirk

 
 
 

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

Post by Michael Jame » Fri, 26 Sep 1997 04:00:00



> 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.

You could copy them to /dev/null every time you reboot

Unfortunatly they will grow untill they gobbol up your entire hard disk.

ps as they are updated by a system daemon they will even use the 5%
reserved for root

--

Email: q9722124~mail/connect/usq/edu/au

 
 
 

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

Post by Tom Evan » Fri, 26 Sep 1997 04:00:00




> > Is there a way to restrict their sizes ?

> erase

 ^^^^^^
Bad idea, because they are open files, better just write to them via
cp /dev/null ...
--

All disclaimers apply...
 
 
 

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

Post by Nikita V. Youshchenk » Fri, 26 Sep 1997 04:00:00



> 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.
> --

There is a nice utility from RedHat, called "logrotate"
It will do all thing.

P.S.  I don't use redhat, but this utility is a good thing anyway ...

 
 
 

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

Post by Pierfrancesco Cac » Sun, 28 Sep 1997 04:00:00



Quote:

> 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 ?

I have cron clean up some directories at night time. It automatically copies
the old files to an OLD directory and gzip them, numbering the files 1 to 7.
No more than 7 days of backlog are kept. For some less useful files I have 4
days of backlog.

I have a Debian distribution here and this sistem is standard for Debian.
So I did not reinvent the wheel :-)

Pf

--

---------------------------------------------------------------------------
  Pierfrancesco Caci  |      internet:      |

   Firenze - Italia   |                     | of Otherwise Simple Affairs
     Linux penny 2.1.36 #4 Sun May 11 08:57:11 CEST 1997 i586 unknown

 
 
 

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

Post by Nix » Mon, 29 Sep 1997 04:00:00





> > > Is there a way to restrict their sizes ?

> > erase
>  ^^^^^^
> Bad idea, because they are open files, better just write to them via
> cp /dev/null ...

cat /dev/null ..., surely? I can't see what good copying a device file
over them would do.

--
`I do honestly believe that my shirts are now *even* whiter, which is
odd because I didn't have any white shirts before I tried that New
Improved washing powder.' - David Hadley on demon.local

 
 
 

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

Post by Jamie Hoglun » Wed, 01 Oct 1997 04:00:00



: 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 ?

Not exactly sure, (since I don't do this) but you could use tail on them.

tail /var/log/messages >/tmp/messages.$$
cp /tmp/messages.$$ /var/log/messages
rm -f /tmp/messages.$$

You might want to backup the original file or something.

Jamie

 
 
 

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

Post by James Youngma » Tue, 07 Oct 1997 04:00:00


  Teo> My /var/log/messages is now over 3 meg, and my syslog is 200+
  Teo> k. I'm very curious how far is this going to go ?  

Depends on your setup.   I have


  966 samba
 1046 messages.2.gz
 1141 messages
 3292 maillog.2.gz
 4232 debugmsgs
 5022 samba.nmb
17042 allmsgs
24724 cron
27573 maillog
29077 pacct                        

  Teo> Is there a
  Teo> way to restrict their sizes ?

Most distributions have a facility available for t* long
logfiles.  For example Red Hat Linux does this with one of the scripts
in /etc/cron.daily, I think.

 
 
 

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

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.

2. Mouse sensitivity under SVGALib?

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

4. XFree86 Configuration problems.

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

6. Problems using dig

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

8. changing Columns and Lines settings

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

10. We are getting this error message /var/log/messages

11. ATAPI cd-rom creates many, many logs in /var/log/messages

12. /var/log/messages with size of 0 and no logs are written !?