httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Gerhardus.Geldenh...@gta-travel.com>
Subject RE: [users@httpd] Simple piped log fails
Date Tue, 14 Oct 2008 12:04:45 GMT
Hi André
Doing cat error.log | /usr/bin/logger -t '' -p local5.warn works perfectly fine. I did'nt
use error log as it is too big and just created a temp file with unique entries to prevent
syslog from saying previous message repeated x times. 

logger I believe is part of syslog. In centos's case it is part of the util-linux package.

The same command works fine on a ibm http server version
 IBM_HTTP_Server/2.0.47.1-PK65782 Apache/2.0.47 (Unix)

However we get the same error:
[Tue Oct 14 12:01:47 2008] [error] child process 6772 still did not exit, sending a SIGKILL
[Tue Oct 14 12:01:47 2008] [error] child process 8086 still did not exit, sending a SIGKILL
[Tue Oct 14 12:01:47 2008] [error] child process 8327 still did not exit, sending a SIGKILL

on the ibm http server when it logrotates 
/bin/kill -HUP `cat /opt/IBMIHS/logs/httpd.pid 2>/dev/null` 2> /dev/null || true

I am actually trying to debug the problem on the ibm server but thought it a good idea to
try and recreate the problem on a different apache to see if it is version related. I have
logged a call with IBM but response time is not great.

Regards



> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com] 
> Sent: 14 October 2008 12:46
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Simple piped log fails
> 
> Hi.
> 
> I don't know the program, but if you try the following :
> 
> cd /var/log/apache2  (or wherever your logfiles are) cat 
> error.log | /usr/bin/logger -t '' -p local5.warn
> 
> what happens ?
> 
> 
> 
> Gerhardus.Geldenhuis@gta-travel.com wrote:
> > Hi
> > I am trying to get a simple piped logging example working
> > 
> > Entry in httpd.conf:
> > CustomLog "|/usr/bin/logger -t '' -p local5.warn" combined
> > 
> > Apache version:
> > Server Version: Apache/2.2.3 (CentOS)
> > Server Built: Jan 15 2008 20:36:04
> > Worker MPM
> > 
> > I am getting the following errors in the error log:
> > piped log program '/usr/bin/logger -t '' -p local5.warn' failed 
> > unexpectedly piped log program '/usr/bin/logger -t '' -p 
> local5.warn' 
> > failed unexpectedly piped log program '/usr/bin/logger -t '' -p 
> > local5.warn' failed unexpectedly
> > 
> > and when I restart I get the following error:
> > [Tue Oct 14 12:33:34 2008] [warn] child process 20786 still did not 
> > exit, sending a SIGTERM [Tue Oct 14 12:33:34 2008] [warn] child 
> > process 20954 still did not exit, sending a SIGTERM [Tue Oct 14 
> > 12:33:34 2008] [warn] child process 21127 still did not 
> exit, sending 
> > a SIGTERM [Tue Oct 14 12:33:34 2008] [warn] child process 
> 21221 still 
> > did not exit, sending a SIGTERM [Tue Oct 14 12:33:34 2008] [warn] 
> > child process 10839 still did not exit, sending a SIGTERM
> > 
> > I saw a very old thread on the web about the same problem 
> and it was 
> > solved back then.
> > 
> > I did a strace but did not see anything obvious, admittedly my 
> > interpreation skills of strace is limited.
> > 
> > Any help/suggestions would be highly appreciated.
> > 
> > Regards

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message