Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 75705 invoked from network); 27 Jan 2010 20:10:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2010 20:10:14 -0000 Received: (qmail 7899 invoked by uid 500); 27 Jan 2010 20:10:11 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 7862 invoked by uid 500); 27 Jan 2010 20:10:11 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 7853 invoked by uid 99); 27 Jan 2010 20:10:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 20:10:11 +0000 X-ASF-Spam-Status: No, hits=3.0 required=10.0 tests=MIME_QP_LONG_LINE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 65.88.89.40 is neither permitted nor denied by domain of PMilanese@nypl.org) Received: from [65.88.89.40] (HELO bes01.mail.nypl.org) (65.88.89.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 20:10:03 +0000 From: Peter J Milanese X-Notes-Item: Wed, 27 Jan 2010 15:11:32 -0500; type=400; name=ComposedDate Date: Wed, 27 Jan 2010 15:09:40 -0500 X-Notes-Item: 85641DCB:DFF78A1B-2A608090:6A09C0B5; type=4; name=$REF X-Notes-Item: Reply; name=Form To: "users" Importance: Normal X-Notes-Item: ; name=SenderTag X-Notes-Item: StdNotesLtr0; name=Logo MIME-Version: 1.0 Message-ID: X-Notes-Item: CC5FB04D:4A502AC4-852576B8:006EBF96; type=4; name=$Orig X-Notes-Item: ; name=RoutingState X-Notes-Item: ; name=DeadFailureReason X-Notes-Item: CN=BES01/O=Nypl; type=501; flags=44; name=$UpdatedBy X-Notes-Item: Wed, 27 Jan 2010 15:09:40 -0500; type=400; name=$Revisions X-Notes-Item: nypl.org; name=FromDomain X-Notes-Item: 25; type=300; name=$Hops X-Notes-Item: 1; name=$NoteHasNativeMIME X-Notes-Item: CN=Peter J Milanese/OU=MHT/O=Nypl; name=OriginalFrom X-MIMETrack: Serialize by Router on BES01/Nypl(Release 8.0.1|February 07, 2008) at 01/27/2010 03:10:02 PM, Serialize complete at 01/27/2010 03:10:02 PM Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Re: mod_log_config issue Isn't cronolog highly dependent on the w3c log convention? ----- Original Message ----- From: Dan Poirier [poirier@pobox.com] Sent: 01/27/2010 03:02 PM EST To: users@httpd.apache.org Subject: [users@httpd] Re: mod_log_config issue Joe Hammerman writes: > Hello Apache users list. > > We have an issue with mod_log_config; specifically we are trying to pipe lo= g output through Sed before it goes to Cronolog. The result is that we get no= output whatsoever. > > Here is a sample of the directives we are using in our VirtualHost containe= r: > > CustomLog "| /bin/sed s/[0-9]\\\{1,3\\\}\\\.[0-9]\\\{1,3\\\}\\\.[0-9]\\= \{1,3\\\}\\\.[0-9]\\\{1,3\\\},\\\ //g | /usr/bin/sudo -u VEsvc /usr/sbin/cron= olog --period=3D1hours /mnt/export/www/logs/beacon/%Y%m%d/%H/survey_log" comb= ined env=3Dsurvey_log > > ErrorLog "| /bin/sed s/[0-9]\\\{1,3\\\}\\\.[0-9]\\\{1,3\\\}\\\.[0-9]\\\= {1,3\\\}\\\.[0-9]\\\{1,3\\\},\\\ //g | /usr/bin/sudo -u VEsvc /usr/sbin/crono= log --period=3D1hours /mnt/export/www/logs/beacon/%Y%m%d/%H/error_log" > > We have also experimented with writing a wrapper script that performs all t= hree of the above functions - the result is the same. > > Does anyone have any input? Is what we are attempting possible? What's the simplest case that doesn't work? What if you take out the whole 'sed' command and just use /bin/cat? Does invoking cronolog with sudo work when not receiving input piped from another command? Does it work with a simpler sed script? --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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