Access Log Image Files Logging

Discussion in 'Install/Configuration' started by paTRon, Jul 13, 2007.

  1. paTRon

    paTRon Member


    I dont want to log image file request in my access.log

    How can i do it ?


    I'm using LiteSpeed/2.2.6 Standard.
  2. ts77

    ts77 Well-Known Member

    why would you do this?
    I think its not really possible, only if you would serve all image-files from one given virtual host and disable access-logging for this host.
  3. paTRon

    paTRon Member


    I just want to do that. My log file is very large that i dont need to log image files.
  4. mistwang

    mistwang LiteSpeed Staff

    You can use a piped logger to filter the log entries of image files.
    If we add a feature like that, it would be Enterprise only.
  5. paTRon

    paTRon Member

    I'm using LiteSpeed Free Edition.

    Thanks all for your replies.

    Maybe I'll buy Enterprise Edition.

  6. mistwang

    mistwang LiteSpeed Staff

    In 3.2 release, access can be turned off with a simple rewrite rule in enterprise edition:
    RewriteRule \.(gif|jpeg|png)$  -  [E=dontlog:1]

Share This Page