Re: CustomLog fails when piped to sed

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

 



On Wed, Mar 11, 2015 at 11:10 PM, Debajit Adhikary <debajit@xxxxxxxxxxx> wrote:
>
> CustomLog "|/bin/sed -r s/pass/REDACTED/g >> /workplace/tmp/access.log" common
>
> However, when I make a request to Apache, I get an error saying
>
> /bin/sed: can't read >>: No such file or directory
>
> How can I get this working? (It seems others have been able to use piped
> CustomLog like this)

With Apache 2.4.x, you probably have to use :

CustomLog "$|/bin/sed -r s/pass/REDACTED/g >> /workplace/tmp/access.log" common

Note the leading $ so that a shell is used (see
http://httpd.apache.org/docs/2.4/logs.html#piped).

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux