GNU bug report logs -
#33292
Piped log program failed unexpectedly when using sed with Apache at windows
Previous Next
Reported by: Assaf Gordon <assafgordon <at> gmail.com>
Date: Tue, 6 Nov 2018 17:43:01 UTC
Severity: normal
Tags: moreinfo, notabug
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 33292 <at> debbugs.gnu.org (full text, mbox):
tags 33292 moreinfo
stop
Hello,
On 2018-11-06 10:42 a.m., Assaf Gordon wrote:
> Bug report forwarded from
> From github https://github.com/agordon/sed/issues/1
> and/or stackoverflow https://stackoverflow.com/q/53118038
>
> Vikram Singh writes:
> ====
> I am using sed to mask some data in proxy logs of Apache at windows.
> Putting command in httpd.conf file is :
>
> CustomLog "|$'C:/Program Files (x86)/GnuWin32/bin/sed' -i
> 's/password=[^ ]*/password=masked/' 'logs/proxy-access.log'" combined
The GnuWin32 version is sed is not maintained by us, so we can't
directly help with it.
There were alos some windows-related improvements recently,
if you could test a newer version that would be very useful.
Lastly,
The command seems weird at a cursory look:
Using "|" means you are piping into sed (and expecting sed to output
the data to STDOUT). but using "sed -i" is "replace --in-place",
meaning it will read the "logs/proxy-access.log" and update it without
reading anything from STDIN or writing anything to STDOUT.
Is that intentional?
> on starting Apache service command prompts start opening and closing and
> in error.logs found exception i.e :
>
> AH00106: piped log program ''C:/Program Files (x86)/GnuWin32/bin/sed' -i
> 's/password=[^ ]*/password=masked/' 'C:/Apache24/logs/proxy-access.log''
> failed unexpectedly
> apache logging sed proxy
> ===
>
"failed unexpectedly" is not a sed error - another program generates it
(apache?) - so it isn't clear what is failing and how.
Can you provide more details?
regards,
- assaf
This bug report was last modified 6 years and 184 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.