Re: Managing difficult log files

From: Laurent Bercot <ska-supervision_at_skarnet.org>
Date: Fri, 17 May 2019 09:08:10 +0000

>So an intermediate reader appears to be a sound workaround. Does anyone
>have a better solution than
>
>ErrorLog “|'execlineb –Pc fdmove 1 0 s6-fdholder-retrieve
>/s/live/servicedirs/s6rc-fdholder/s ‘pipe:s6rc-w-final-logger’ fdswap 0
>1 sh -c "read X; echo ${X}"

1. "cat" should work instead of your shell excerpt, shouldn't it?
Isn't it supposed to flush on every line?

2. Instead of spawning a separate process for each ErrorLog, it
should be possible to create a fifo, and declare that fifo as your
ErrorLog file. Every httpd would then write into the fifo, and you
would have a single s6-log reading from it.

--
Laurent
Received on Fri May 17 2019 - 09:08:10 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC