logrotate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I figured it out..with the help of webadmin..:)  The part that i 
was having trouble with was the *.  one question.  Will this 
setup delete the old uncompressed logs?


here is my entry in logrotate.conf:

  system-specific logs may be also be configured here.
/servers/hlds/cstrike/logs/*.log {
	rotate 24
	compress
	nodelaycompress
	nocopytruncate
	notifempty
	missingok
	nocreate
	olddir /servers/hlds/cstrike/logs/old
	nomail
	weekly
}

If you see errors in there let me know.  Thanks for everyone's 
help..:)

Johnny Hughes wrote:

> On Sun, 2005-05-29 at 10:24 -0400, William Warren wrote:
> 
>>Where are currently used .conf files kept?  the 
>>/etc/logrotate.conf file does not contain any useful information.
>>
>>
>>This is Centos 4 BTW.
>>
> 
> 
> The meat of logrotate is in:
> 
> /etc/logrotate.d
> 
> The logrotate.conf file reads individual files from there
> 
> 
>>replies-lists-centos@xxxxxxxxxxxxxxxxxxxxx wrote:
>>
>>
>>>between the man page for logrotate, the /etc/logrotate.conf file and
>>>some of the files in the logrotate.d directory you should be able to
>>>see all the bits necessary to accomplish what you're after.
>>>
>>>the /etc/logrotate.d/exim file gives you an example of wildcarding
>>>the files that are included. 
>>>
>>>by default, gzip deletes the file when compression is complete, so
>>>you don't have a file delete issue. 
>>>
>>>you'll probably need to use the "force" option during setup and
>>>testing.
>>>
>>>
>>>------------ Original Message ------------
>>>
>>>
>>>>Date: Sunday, May 29, 2005 10:06:20 AM -0400
>>>>From: William Warren <hescominsoon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
>>>>To: CentOS mailing list <centos@xxxxxxxxxx> 
>>>>Subject:  logrotate
>>>>
>>>>I am googgling right now but am unable to find a simpler
>>>>description of how to get logrotate to do what i want it to do.
>>>>
>>>>I have a cs 1.6 server that generates quite a bit of logs.  That
>>>>log generation is going to increase significantly with one of my
>>>>plugins i am going to be installing(logD and the impressive
>>>>plugin).  I want to tell logrotate to daily rotate all the logs
>>>>inside my /servers/hlds/cstrike/logs folder.  A new log is
>>>>generated every map change and when any on-the-fly configuration is
>>>>changed.  Over the past 5 days there are 350 logfiles.  How can i
>>>>tel logrotate to rotate all of the individual logs in the folder,
>>>>when rotating to compress them, store the compressed files in the
>>>>same directory..delete the uncompressed logs..and not to delete any
>>>>old logs for 6 months?
>>>>
>>>>
>>>>-- 
>>>>Computer House Calls, Networks, Security, Web Design:
>>>>http://www.emmanuelcomputerconsulting.com
>>>>What businesses are in Brunswick, Maryland?  Check Brunswick First!
>>>>http://www.checkbrunswickfirst.com
>>>>My "Foundation" verse:
>>>>Isa 54:17  No weapon that is formed against thee shall prosper; and
>>>>every tongue that shall rise against thee in judgment thou shalt
>>>>condemn. This is the heritage of the servants of the LORD, and
>>>>their righteousness is of me, saith the LORD.
>>>>
>>>>-- carpe ductum -- "Grab the tape"
>>>>CDTT (Certified Duct Tape Technician)
>>>>
>>>>Linux user #322099
>>>>Machines:
>>>>206822
>>>>256638
>>>>276825
>>>>http://counter.li.org/
>>>>_______________________________________________
>>>>CentOS mailing list
>>>>CentOS@xxxxxxxxxx
>>>>http://lists.centos.org/mailman/listinfo/centos
>>>
>>>
>>>---------- End Original Message ----------
>>>
>>>
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos

-- 
Computer House Calls, Networks, Security, Web Design:
http://www.emmanuelcomputerconsulting.com
What businesses are in Brunswick, Maryland?  Check Brunswick First!
http://www.checkbrunswickfirst.com
My "Foundation" verse:
Isa 54:17  No weapon that is formed against thee shall prosper; 
and every tongue that shall rise against thee in judgment thou 
shalt condemn. This is the heritage of the servants of the LORD, 
and their righteousness is of me, saith the LORD.

-- carpe ductum -- "Grab the tape"
CDTT (Certified Duct Tape Technician)

Linux user #322099
Machines:
206822
256638
276825
http://counter.li.org/

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux