Re: log size handling

2008-07-31 Thread z.szalbot
Hello, > The restart process with apache is that all the child processes are > shutdown -- either straight away (for a plain restart) or once they've > finished their current bit of work (fora graceful restart). As the child > process shuts down, it closes all the file descriptors used for loggin

Re: log size handling

2008-07-19 Thread Mel
On Thursday 17 July 2008 13:31:39 Zbigniew Szalbot wrote: > Yes, I am compressing them. Load is not an issue yet but I want to > optimize things that can be optimized. So I guess, rotate more often? I > like the idea of having one monthly log because it is then processed by > web stat software so

Re: log size handling

2008-07-18 Thread Matthew Seaman
Zbigniew Szalbot wrote: Hello, Matthew Seaman: Correct. Although you may want to add '30' as the 8th field -- that means 'send signal 30 (SIGUSR1) to apache instead of SIGHUP' -- SIGUSR1 causes apache to do a graceful restart rather than abruptly killing and restarting everything: http://h

Re: log size handling

2008-07-18 Thread Zbigniew Szalbot
Hello, Matthew Seaman: Correct. Although you may want to add '30' as the 8th field -- that means 'send signal 30 (SIGUSR1) to apache instead of SIGHUP' -- SIGUSR1 causes apache to do a graceful restart rather than abruptly killing and restarting everything: http://httpd.apache.org/docs/2.2/sto

Re: log size handling

2008-07-18 Thread Matthew Seaman
Zbigniew Szalbot wrote: Hello, Matthew Seaman: Do I have to rotate them myself via a script in crontab? There are several ways to do this. Here's three in addition to the script that someone else just posted: * Use the 'G' option to newsyslog. 'G' says that the filename field of newsys

Re: log size handling

2008-07-18 Thread Zbigniew Szalbot
Hello, Matthew Seaman: Do I have to rotate them myself via a script in crontab? There are several ways to do this. Here's three in addition to the script that someone else just posted: * Use the 'G' option to newsyslog. 'G' says that the filename field of newsyslog.conf actually contain

Re: log size handling

2008-07-17 Thread David Newman
On 7/17/08 7:10 AM, Matthew Seaman wrote: * Use the rotatelogs program that comes with Apache. In this case, you replace the logging configuration statements in https.conf eg. instead of: CustomLog "/var/log/httpd-access.log" combine you have: CustomLog "|/usr/local

Re: log size handling

2008-07-17 Thread Matthew Seaman
Mario Lobo wrote: What would be the proper way to set the rotation of apache logs in newsyslog.conf when there are separate log files for each virtual host? Do I have to rotate them myself via a script in crontab? There are several ways to do this. Here's three in addition to the script tha

Re: log size handling

2008-07-17 Thread Volodymyr Kostyrko
Mario Lobo wrote: On Thursday 17 July 2008, Zbigniew Szalbot wrote: What would be the proper way to set the rotation of apache logs in newsyslog.conf when there are separate log files for each virtual host? /var/log/httpd/*.log www:wheel 644 7 102400 * JG /var/run/httpd.pid 30 Do I have to

Re: log size handling

2008-07-17 Thread Mario Lobo
On Thursday 17 July 2008, Zbigniew Szalbot wrote: > Hi, > > Bill Moran: > > In response to Zbigniew Szalbot <[EMAIL PROTECTED]>: > >> Hello, > >> > >> I am just wondering if for the software like Apache the log size > >> matters at all. I rotate httpd logs monthly and each domain has its > >> own l

Re: log size handling

2008-07-17 Thread Zbigniew Szalbot
Hi, Bill Moran: In response to Zbigniew Szalbot <[EMAIL PROTECTED]>: Hello, I am just wondering if for the software like Apache the log size matters at all. I rotate httpd logs monthly and each domain has its own log. One is over 145 MB in size. Just curious if I can keep it like that or shou

Re: log size handling

2008-07-17 Thread Bill Moran
In response to Zbigniew Szalbot <[EMAIL PROTECTED]>: > Hello, > > I am just wondering if for the software like Apache the log size matters > at all. I rotate httpd logs monthly and each domain has its own log. One > is over 145 MB in size. Just curious if I can keep it like that or > should ro

log size handling

2008-07-17 Thread Zbigniew Szalbot
Hello, I am just wondering if for the software like Apache the log size matters at all. I rotate httpd logs monthly and each domain has its own log. One is over 145 MB in size. Just curious if I can keep it like that or should rotate more often? I have enough space on HD so the log's size is