Marcos & Vivek, Sorry - I addressed my reply to the wrong person! Perhaps I should wear my glasses . . . Alan. ---------------------------------------- > From: stxsl_ajb@xxxxxxxxxxx > To: redhat-list@xxxxxxxxxx > Date: Thu, 22 Nov 2007 17:07:10 +0000 > Subject: RE: problem in log files > > > Marcos, > > I'm not sure if I understand exactly what it is you want to do. However I can tell you that the ".gz" files are being created because a line in /etc/logrotate.conf has been un-commented. > > Change the line "compress" to "#compress". > > If you want to reduce the number of weeks of back-logs you keep from four to - let's say - two, change the line in logrotate.conf "rotate 4" to "rotate 2". Now just remove the old back-logs: > > rm *.[1-4] *.gz > >>From now on, for a logfile named, say "boot.log", you will just see the current logfile, "boot.log" and the previous two weeks back-logs, "boot.log.1" and "boot.log.2". > > Hope this helps. > Alan. > > ---------------------------------------- >> Date: Thu, 22 Nov 2007 08:40:01 -0200 >> From: deigratia33@xxxxxxxxx >> To: redhat-list@xxxxxxxxxx >> Subject: Re: problem in log files >> >> Sorry, >> >> But i am not sure if i understood your problem... >> >> Do you like to stop the log's rotate? >> >> Because the logrotate is your friend, if you stop the logrotate your >> log files will be bigger and bigger... >> >> -- >> ======================================== >> Marcos Aurelio Rodrigues (DE!Gr4t!4-33) >> >> CCNA >> Mirabilia laudo semprer, Dei >> ======================================== >> >> >> On Nov 22, 2007 3:38 AM, Vivek Mangal wrote: >>> Hello All, >>> I have a great problem in my log files, >>> here is files of my /var/log directory, >>> in which some files are created automatically and they have different dates >>> please help me, to stop these files parmanently. >>> >>> # ll /var/log >>> total 87236 >>> -rw-r----- 1 root root 3567 Nov 1 17:25 acpid >>> -rw------- 1 root root 14748 May 31 12:47 anaconda.log >>> -rw------- 1 root root 20805 May 31 12:47 anaconda.syslog >>> -rw------- 1 root root 55662 May 31 12:47 anaconda.xlog >>> drwxr-x--- 2 root root 4096 Mar 6 2007 audit >>> -rw------- 1 root root 6865 Nov 1 17:44 boot.log >>> -rw------- 1 root root 3564 Oct 30 13:39 boot.log.1.gz >>> -rw------- 1 root root 19426 Aug 31 15:30 boot.log.2 >>> -rw------- 1 root root 1378 Oct 22 15:28 boot.log.2.gz >>> -rw------- 1 root root 18376 Aug 6 09:11 boot.log.3 >>> -rw------- 1 root root 2823 Oct 18 11:48 boot.log.3.gz >>> -rw------- 1 root root 54531 Jul 31 15:38 boot.log.4 >>> drwxr-xr-x 2 clamav clamav 4096 Oct 30 13:39 clamav >>> -rw------- 1 root root 902 Nov 1 18:32 cron >>> -rw------- 1 root root 329 Oct 30 13:39 cron.1.gz >>> -rw------- 1 root root 1060 Aug 31 15:54 cron.2 >>> -rw------- 1 root root 284 Oct 22 15:28 cron.2.gz >>> -rw------- 1 root root 1280 Aug 6 10:17 cron.3 >>> -rw------- 1 root root 397 Oct 18 11:48 cron.3.gz >>> -rw------- 1 root root 2490 Jul 31 16:32 cron.4 >>> drwxr-xr-x 2 lp sys 4096 Jul 18 16:32 cups >>> -rw-r--r-- 1 root root 16310 Nov 1 17:25 dmesg >>> -rw-r--r-- 1 root root 0 Nov 5 15:34 emt >>> drwxr-xr-x 2 root root 4096 Nov 1 17:25 gdm >>> drwx------ 2 root root 4096 Nov 5 15:23 httpd >>> -r-------- 1 root root 230680 Nov 5 15:32 lastlog >>> drwxr-xr-x 2 root root 4096 Oct 26 12:18 mail >>> -rw------- 1 root root 19512000 Nov 5 15:34 maillog >>> -rw------- 1 root root 2436733 Oct 30 13:39 maillog.1.gz >>> -rw------- 1 root root 36652724 Aug 31 15:55 maillog.2 >>> -rw------- 1 root root 953172 Oct 22 15:28 maillog.2.gz >>> -rw------- 1 root root 5409192 Aug 6 10:16 maillog.3 >>> -rw------- 1 root root 7998411 Oct 18 11:48 maillog.3.gz >>> -rw------- 1 root root 10998119 Jul 31 16:32 maillog.4 >>> -rw------- 1 root root 200692 Nov 5 15:32 messages >>> -rw------- 1 root root 90905 Oct 30 13:39 messages.1.gz >>> -rw------- 1 root root 1579936 Aug 31 15:55 messages.2 >>> -rw------- 1 root root 25950 Oct 22 15:28 messages.2.gz >>> -rw------- 1 root root 246969 Aug 6 10:16 messages.3 >>> -rw------- 1 root root 103682 Oct 18 11:48 messages.3.gz >>> -rw------- 1 root root 878330 Jul 31 16:32 messages.4 >>> drwx------ 2 root root 4096 Nov 2 2004 ppp >>> -rw-r--r-- 1 root root 51744 Nov 1 18:32 prelink.log >>> -rw-r--r-- 1 root root 25508 Nov 1 18:32 rpmpkgs >>> -rw-r--r-- 1 root root 6970 Oct 30 13:39 rpmpkgs.1.gz >>> -rw-r--r-- 1 root root 25166 Aug 6 10:17 rpmpkgs.2 >>> -rw-r--r-- 1 root root 6963 Oct 22 15:28 rpmpkgs.2.gz >>> -rw-r--r-- 1 root root 25166 Aug 2 14:12 rpmpkgs.3 >>> -rw-r--r-- 1 root root 6965 Oct 18 11:48 rpmpkgs.3.gz >>> -rw-r--r-- 1 root root 24030 Jul 14 13:17 rpmpkgs.4 >>> drwx------ 2 root root 4096 May 11 22:52 samba >>> -rw-r--r-- 1 root root 124995 Aug 1 04:56 scrollkeeper.log >>> -rw------- 1 root root 25926 Nov 5 15:32 secure >>> -rw------- 1 root root 6500 Oct 30 13:39 secure.1.gz >>> -rw------- 1 root root 126332 Aug 31 15:49 secure.2 >>> -rw------- 1 root root 2526 Oct 22 15:28 secure.2.gz >>> -rw------- 1 root root 22017 Aug 6 09:52 secure.3 >>> -rw------- 1 root root 12092 Oct 18 11:48 secure.3.gz >>> -rw------- 1 root root 58731 Jul 31 16:27 secure.4 >>> -rw------- 1 root root 0 Oct 30 13:39 spooler >>> -rw------- 1 root root 20 Oct 30 13:39 spooler.1.gz >>> -rw------- 1 root root 0 Aug 6 10:17 spooler.2 >>> -rw------- 1 root root 20 Oct 22 15:28 spooler.2.gz >>> -rw------- 1 root root 0 Jul 31 16:32 spooler.3 >>> -rw------- 1 root root 20 Oct 18 11:48 spooler.3.gz >>> -rw------- 1 root root 0 Jul 11 13:50 spooler.4 >>> -rw-r--r-- 1 root root 358 Nov 1 21:39 up2date >>> -rw-r--r-- 1 root root 473 Oct 30 13:39 up2date.1.gz >>> -rw-r--r-- 1 root root 6052 Aug 31 14:20 up2date.2 >>> -rw-r--r-- 1 root root 435 Oct 22 15:28 up2date.2.gz >>> -rw-r--r-- 1 root root 306118 Aug 2 18:36 up2date.3 >>> -rw-r--r-- 1 root root 648 Oct 18 11:48 up2date.3.gz >>> -rw-r--r-- 1 root root 62332 Jul 31 15:22 up2date.4 >>> drwxr-xr-x 2 root root 4096 Oct 5 2004 vbox >>> -rw-rw-r-- 1 root utmp 68352 Nov 5 15:32 wtmp >>> -rw-rw-r-- 1 root utmp 49435 Nov 1 18:31 wtmp.1.gz >>> -rw-r--r-- 1 root root 107219 Nov 2 09:52 Xorg.0.log >>> -rw-r--r-- 1 root root 53217 Oct 30 12:30 Xorg.0.log.old >>> >>> and their is /etc/logrotate.conf ........................... >>> # see "man logrotate" for details >>> # rotate log files weekly >>> weekly >>> >>> # keep 4 weeks worth of backlogs >>> rotate 4 >>> >>> # 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 wtmp -- we'll rotate them here >>> /var/log/wtmp { >>> monthly >>> create 0664 root utmp >>> rotate 1 >>> } >>> >>> please help me >>> i am not understanding, what i do to stop to create these files >>> and please tell me why they created ? >>> -- >>> redhat-list mailing list >>> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe >>> https://www.redhat.com/mailman/listinfo/redhat-list >>> >> >> -- >> redhat-list mailing list >> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe >> https://www.redhat.com/mailman/listinfo/redhat-list > > _________________________________________________________________ > Feel like a local wherever you go. > http://www.backofmyhand.com > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list _________________________________________________________________ 100’s of Music vouchers to be won with MSN Music https://www.musicmashup.co.uk -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list