Logging Compression Results
The following three directives can be added to the httpd.conf
file to
enable the writing of compression statistics to a log file. These directives will record
the bytes before compression (Input), the bytes after compression (Output), and
calculate the compression ratio:
DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio
The following line defines a new logging format to be used for the compression log. The format is named "deflate." The second line below specifies the path and file name of the log file (deflate.log) where the output is written.
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate CustomLog Z:\IBM\HTTPServer\logs\deflate.log/u01/IBM/HTTPServer/logs/deflate.log deflate