Menu

#17 how can I log error only ?

open
nobody
None
3
2004-10-11
2004-01-26
Anonymous
No

Hello, first I’d like too thank you for this great module ;-)

Then, I also have a question.
Due to a great usage of my http server (apache 1.3.27)
my log files explodes, they are growing too fast and too
much. So I’d like to know how can I decrease those by
keeping only error (mod_gzip error).

Here is my mod_gzip log config :

LogFormat "%h %l %u %t \"%V %r\" %<s %b
mod_gzip: %{mod_gzip_result}n In:%
{mod_gzip_input_size}n -< Out:%
{mod_gzip_output_size}n = %
{mod_gzip_compression_ratio}n pct."
common_with_mod_gzip_info2

CustomLog /var/apache/log/mod_gzip.log
common_with_mod_gzip_info2

Discussion

  • Michael Schröpl

    Logged In: YES
    user_id=211909

    mod_gzip doesn't have the concept of "errors". The status
    field only displays a status string.

    Therefore mod_gzip doesn't support filtering message output
    into access_log depending on whether an "error" occurred or not.

    But what you might try is directing your access_log not to a
    file but to a pipe, and install your own filtering program
    that would only forward what you (!) consider an "error".

     
  • Michael Schröpl

    • priority: 5 --> 3
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.