Re: [CentOS] Logrotation with retention period

2010-05-27 Thread Arun Khan
On Thu, May 27, 2010 at 7:37 AM, James Corteciano ja...@linux-source.org wrote: Is it possible that the output after doing logrotate could be like the below sample. All compressed logs will be keep until 6 months only. I know there is man page / docs in internet but I can't get the exact

[CentOS] Logrotation with retention period

2010-05-26 Thread James Corteciano
Hi All, How can it be done it logrotate configuration that I wanted to have the logs in six (6) month retention period? I have the following logs and directories of mysql. [hostname]# ls /var/log/mysql/ 2010.05.01/general.log 2010.05.01/error.log 2010.05.02/general.log 2010.05.02/error.log

Re: [CentOS] logrotation

2007-10-19 Thread Ralph Angenendt
umair shakil wrote: Dear, Thanks for your help, BSD and CentOs both are different, cenTos is a redhat while BSD is totally debian Ermm, no. It's not. BSD is totally BSD. Ralph pgprDIwkmVmHf.pgp Description: PGP signature ___ CentOS

Re: [CentOS] logrotation

2007-10-19 Thread Jim Wildman
On Fri, 19 Oct 2007, umair shakil wrote: Dear, Tell me one thing, why u people not experience different things? Dont u know all flavours base is same why dont u people read the whole message i just said, commands vary different in the sense that it is a pure open source project with no

[CentOS] logrotation with date and time

2007-10-19 Thread umair shakil
Dear all Salam, This is for all LOGFILE=/var/log/syslog FILE=$LOGFILE.`date +%F.%H:%M:%S`.log it will store the log in date+time format Regards, Umair Shakil ETD ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] logrotation

2007-10-19 Thread umair shakil
Dear, Tell me one thing, why u people not experience different things? Dont u know all flavours base is same why dont u people read the whole message i just said, commands vary different in the sense that it is a pure open source project with no binaries included If i ask a question

Re: [CentOS] logrotation

2007-10-19 Thread Steven Vishoot
--- umair shakil [EMAIL PROTECTED] wrote: Dear, Thanks for your help, BSD and CentOs both are different, cenTos is a redhat while BSD is totally debian, also commands vary. Problem is solved Regards, Umair Shakil ETD On 10/19/07, Mogens Kjaer [EMAIL PROTECTED] wrote: umair

Re: [CentOS] logrotation

2007-10-19 Thread umair shakil
Dear All, If i want to store the .gz files in date or time format what configurations are required? Regards, Umair Shakil ETD On 10/19/07, umair shakil [EMAIL PROTECTED] wrote: Dear, Thanks for your help, BSD and CentOs both are different, cenTos is a redhat while BSD is totally

Re: [CentOS] logrotation

2007-10-19 Thread Les Bell
umair shakil [EMAIL PROTECTED] wrote: when i use less command to see this gz file it says do u want to see binary file?? through which utility i can see the contants of the file??? All right, I'll bite. You could use zcat. But if you really want to use less to *automatically* unzip a .gz

Re: [CentOS] logrotation

2007-10-19 Thread Mogens Kjaer
umair shakil wrote: Dear all Salam, i have installed logrotation package in BSD, the script runs every night at 3:00 pm night and makes filename.1.gz. but when i use less command to see this gz file it says do u want to see binary file?? through which utility i can see the contants of the

Re: [CentOS] logrotation

2007-10-19 Thread Mogens Kjaer
umair shakil wrote: Dear All, If i want to store the .gz files in date or time format what configurations are required? On Centos, I would read man logrotate, especially the point dateext. Older logrotate's don't have this. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department

Re: [CentOS] logrotation

2007-10-19 Thread umair shakil
Dear, Thanks for your help, BSD and CentOs both are different, cenTos is a redhat while BSD is totally debian, also commands vary. Problem is solved Regards, Umair Shakil ETD On 10/19/07, Mogens Kjaer [EMAIL PROTECTED] wrote: umair shakil wrote: Dear all Salam, i have installed