Results 1 to 7 of 7
  1. #1

    Configure apache log

    Hi
    Is there anyway to configure apache to stop logging 404 error
    My log file has a lot of File does not exist

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Yes. Edit your httpd.conf file and change the logging level from warn or error to crit. There might be other ways to do this but changing the LogLevel is the simplest way:

    LogLevel crit

    Then restart Apache.
    RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca

    www.HostingSecList.com - Security Notices for the Hosting Community.

  3. #3
    I am not sure if that what I am locking for
    I think this will stop other errors from being logged
    I just want 404 not to be logged

  4. #4
    How about using the mod_log_config?
    http://httpd.apache.org/docs/2.0/mod...og_config.html

    and this one
    http://helicontech.blogspot.co.uk/20...abilities.html
    will give you some ideas for the log format and setenvif directive.

  5. #5
    Quote Originally Posted by enigma-1 View Post
    How about using the mod_log_config?
    http://httpd.apache.org/docs/2.0/mod...og_config.html

    and this one
    http://helicontech.blogspot.co.uk/20...abilities.html
    will give you some ideas for the log format and setenvif directive.
    Thanks its helpful

  6. #6
    Join Date
    Jun 2011
    Location
    Woodbridge, NJ
    Posts
    840
    Why are you getting so many 404 errors in the first place? Missing images? Broken links? If so, the better option would be to fix those issues instead of covering them up by not logging the errors.

  7. #7
    404s maybe caused for various reasons, not not only for incorrectly placed links or missing files. Various hack attempts will also trigger 404s and other errors. In many apache logs I see the number of artificial 404s is much greater than normal traffic.

Similar Threads

  1. Weird log entry in apache log
    By MixMasters in forum Hosting Security and Technology
    Replies: 10
    Last Post: 10-11-2009, 02:25 PM
  2. Apache Error log: log files that exist
    By Elliot01 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 07-04-2007, 06:00 PM
  3. Replies: 2
    Last Post: 12-05-2006, 11:28 PM
  4. URGENT - Configure Urchin to work with log rotating
    By FrzzMan in forum Hosting Security and Technology
    Replies: 0
    Last Post: 12-26-2003, 05:46 PM
  5. If a user doesn't need log stats, can you remove log path from apache?
    By DWHS in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-04-2003, 11:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •