Results 1 to 7 of 7
Thread: Configure apache log
-
04-25-2012, 05:18 AM #1WHT Addict
- Join Date
- Sep 2009
- Posts
- 112
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
-
04-25-2012, 07:00 AM #2Web Hosting Master
- 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.
-
04-25-2012, 07:57 AM #3WHT Addict
- Join Date
- Sep 2009
- Posts
- 112
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
-
04-25-2012, 10:55 AM #4WHT Addict
- Join Date
- Mar 2012
- Posts
- 139
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.
-
04-25-2012, 06:19 PM #5WHT Addict
- Join Date
- Sep 2009
- Posts
- 112
-
04-25-2012, 07:53 PM #6(formerly WhichGunDotCom)
- 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.
-
04-26-2012, 05:49 AM #7WHT Addict
- Join Date
- Mar 2012
- Posts
- 139
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
-
Weird log entry in apache log
By MixMasters in forum Hosting Security and TechnologyReplies: 10Last Post: 10-11-2009, 02:25 PM -
Apache Error log: log files that exist
By Elliot01 in forum Hosting Security and TechnologyReplies: 3Last Post: 07-04-2007, 06:00 PM -
whm question-- "Raw Apache Log Download" which log is this?
By disgust in forum Dedicated ServerReplies: 2Last Post: 12-05-2006, 11:28 PM -
URGENT - Configure Urchin to work with log rotating
By FrzzMan in forum Hosting Security and TechnologyReplies: 0Last Post: 12-26-2003, 05:46 PM -
If a user doesn't need log stats, can you remove log path from apache?
By DWHS in forum Hosting Security and TechnologyReplies: 3Last Post: 04-04-2003, 11:32 AM