Re: Using gzip and CustomLog

2009-02-13 Thread Paras Fadte
Did anybody had a chance to look at the attached rotatelogs file? On Tue, Feb 10, 2009 at 2:32 PM, Paras Fadte plf...@gmail.com wrote: Hi Rainer, I have attached the modified rotatelogs.c file (originally taken from apache 2.0.55 ) . Can you please have a look at it and let me know its

Re: Using gzip and CustomLog

2009-02-10 Thread Paras Fadte
Thanks Rainer. On Sun, Feb 8, 2009 at 8:50 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 28.01.2009 06:50, Paras Fadte wrote: I have somewhat modified the rotatlogs utility to support compression . Although it creates files in compressed format (.gz) and rotates them properly the issue

Re: Using gzip and CustomLog

2009-02-10 Thread Paras Fadte
Hi Rainer, I have attached the modified rotatelogs.c file (originally taken from apache 2.0.55 ) . Can you please have a look at it and let me know its shortcomings and chances that it could seg fault ? Thanks in advance. -Paras On Tue, Feb 10, 2009 at 1:37 PM, Paras Fadte plf...@gmail.com

Re: Using gzip and CustomLog

2009-02-08 Thread Rainer Jung
On 28.01.2009 06:50, Paras Fadte wrote: I have somewhat modified the rotatlogs utility to support compression . Although it creates files in compressed format (.gz) and rotates them properly the issue that i am facing is that when apache is restarted (graceful or stop/start way ) the last

Re: Using gzip and CustomLog

2009-01-30 Thread Paras Fadte
Hi Rainer, Can you please help me out with this ? I am using the rotatelogs utility from apache 2.0.55 Thanks. -Paras On Wed, Jan 28, 2009 at 11:20 AM, Paras Fadte plf...@gmail.com wrote: Hi , I have somewhat modified the rotatlogs utility to support compression . Although it creates

Re: Using gzip and CustomLog

2009-01-28 Thread Paras Fadte
Hi, Anybody who can respond to my query ? Thanks. -Paras On Wed, Jan 28, 2009 at 11:20 AM, Paras Fadte plf...@gmail.com wrote: Hi , I have somewhat modified the rotatlogs utility to support compression . Although it creates files in compressed format (.gz) and rotates them properly the

Re: Using gzip and CustomLog

2009-01-27 Thread Paras Fadte
Hi , I have somewhat modified the rotatlogs utility to support compression . Although it creates files in compressed format (.gz) and rotates them properly the issue that i am facing is that when apache is restarted (graceful or stop/start way ) the last created compressed file doesn't seem to

Re: Using gzip and CustomLog

2009-01-23 Thread Rainer Jung
On 23.01.2009 08:45, Paras Fadte wrote: Can you please tell me in which file ? I assume you are building rotatelogs from within the httpd sources. There is a file support/Makefile, which contains a line $(LINK) $(rotatelogs_LTFLAGS) $(rotatelogs_OBJECTS) $(PROGRAM_LDADD) Simply add -lz at

Re: Using gzip and CustomLog

2009-01-23 Thread Paras Fadte
Thanks Rainer, yeah.. me not a pro at development . On Fri, Jan 23, 2009 at 1:30 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 23.01.2009 08:45, Paras Fadte wrote: Can you please tell me in which file ? I assume you are building rotatelogs from within the httpd sources. There is a

Re: Using gzip and CustomLog

2009-01-22 Thread Rainer Jung
On 22.01.2009 08:38, Paras Fadte wrote: Can anyone respond to this query of mine? I don't have a very nice solution. I expect you need to create something on your own, using the fact, that the pipe syntax in httpd let's you pass the log information to any external logger you like. I

Re: Using gzip and CustomLog

2009-01-22 Thread Paras Fadte
Hi, I get following error when I try to use compress function of zlib in rotatelogs.c . I have included zlib.h in rotatelogs.c . /home/paras/httpd-2.0.55/support/rotatelogs.c:294: undefined reference to `compress' collect2: ld returned 1 exit status Is it linking error ? where should I make

Re: Using gzip and CustomLog

2009-01-22 Thread Rainer Jung
On 23.01.2009 07:55, Paras Fadte wrote: Hi, I get following error when I try to use compress function of zlib in rotatelogs.c . I have included zlib.h in rotatelogs.c . /home/paras/httpd-2.0.55/support/rotatelogs.c:294: undefined reference to `compress' collect2: ld returned 1 exit status

Re: Using gzip and CustomLog

2009-01-22 Thread Paras Fadte
Can you please tell me in which file ? On Fri, Jan 23, 2009 at 1:09 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 23.01.2009 07:55, Paras Fadte wrote: Hi, I get following error when I try to use compress function of zlib in rotatelogs.c . I have included zlib.h in rotatelogs.c .

RE: Using gzip and CustomLog

2009-01-21 Thread Plüm, Rüdiger, VF-Group
Have you tried CustomLog |/bin/sh \gzip -c /home/mydir/apache/logs/mydomain.com-access_log.gz\ combined ? Regards Rüdiger -Original Message- From: Paras Fadte Sent: Mittwoch, 21. Januar 2009 07:09 To: dev@httpd.apache.org Subject: Using gzip and CustomLog Hi , Does

Re: Using gzip and CustomLog

2009-01-21 Thread Rainer Jung
On 21.01.2009 07:09, Paras Fadte wrote: Hi , Does something like following work in Apache/2.0.55 ? CustomLog |/bin/gzip -c /home/mydir/apache/logs/mydomain.com-access_log.gz combined In errorlog it says : piped log program '/bin/gzip -c

Re: Using gzip and CustomLog

2009-01-21 Thread Paras Fadte
Hi, Thanks for the response , I will try that . What I would like to know is whether one can combine the gzip usage with rotatelogs utility so that as the logs are written in gzipped format they also get rotated as per the time/size specified . Thanks in advance. -Paras On Wed, Jan 21, 2009

Re: Using gzip and CustomLog

2009-01-21 Thread Paras Fadte
OS used is SUSE LINUX 10.1 (X86-64) On Wed, Jan 21, 2009 at 4:42 PM, Paras Fadte plf...@gmail.com wrote: Hi, Thanks for the response , I will try that . What I would like to know is whether one can combine the gzip usage with rotatelogs utility so that as the logs are written in gzipped

Re: Using gzip and CustomLog

2009-01-21 Thread Paras Fadte
I tried this and It creates mydomain.com-access_log.gz but doesn't seem to update it. On Wed, Jan 21, 2009 at 4:27 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 21.01.2009 07:09, Paras Fadte wrote: Hi , Does something like following work in Apache/2.0.55 ? CustomLog |/bin/gzip -c

Re: Using gzip and CustomLog

2009-01-21 Thread Rainer Jung
On 21.01.2009 13:01, Paras Fadte wrote: I tried this and It creates mydomain.com-access_log.gz but doesn't seem to update it. That's the buffering of gzip I mentioned. Run /path/to/httpd/bin/ab -n 5 -c 10 -k http://myserver:myport/ and you'll see data arriving. Regards, Rainer On

Re: Using gzip and CustomLog

2009-01-21 Thread Paras Fadte
Thanks for the response. Noticed that graceful apache restart tends to flush the buffer to log when gzip is used . Can you please shed some light on combining/using gzip and rotatelogs utility together ? -Paras On Wed, Jan 21, 2009 at 7:46 PM, Rainer Jung rainer.j...@kippdata.de wrote: On

Re: Using gzip and CustomLog

2009-01-21 Thread Paras Fadte
Can anyone respond to this query of mine? On Wed, Jan 21, 2009 at 8:15 PM, Paras Fadte plf...@gmail.com wrote: Thanks for the response. Noticed that graceful apache restart tends to flush the buffer to log when gzip is used . Can you please shed some light on combining/using gzip and

Using gzip and CustomLog

2009-01-20 Thread Paras Fadte
Hi , Does something like following work in Apache/2.0.55 ? CustomLog |/bin/gzip -c /home/mydir/apache/logs/mydomain.com-access_log.gz combined In errorlog it says : piped log program '/bin/gzip -c /home/mydir/apache/logs/mydomain.com-access_log.gz' failed unexpectedly gzip: