[ Using piped logs with gzip is rather painful. Here is what I came up
with to improve the "user experience". Getting the scripts right so
that no data was lost in normal operation is non-trivial, so I thought
I'd share. ]

=compresslog README=

Save a ton of disk IO (or SAN traffic) in your webserver setups, not
losing any log entries and retaining ease of debugging and
diagnostics.

Piped logs to gzip unfortunately loses significant amounts of log data upon stop
and restart; and prevents use of tail, which complicates diagnostics
of live systems.

With compresslog:

 * Use piped logs to compress your Apache logs with zlib compression.
 * Resulting files are valid gzip files.
 * The compression process adds significant buffering.
 * Includes ztail utility -- equivalent to tail -n 10 -f yourlog
   which flushes buffers appropriately.

Find it at:

  http://repo.or.cz/w/compresslog.git/

Patches and beers welcome.

cheers,



m
-- 
 [email protected]
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff

Reply via email to