Project

General

Profile

[Solved] How to log 404 only?

Added by badpenguin about 9 years ago

Is there a way to log 404 events only or just anything different from HTTP status code 200?


Replies (1)

RE: [Solved] How to log 404 only? - Added by gstrauss about 7 years ago

No direct way to do so, but you can grep file not found out of the error log, or you can use mod_accesslog Docs_ModAccessLog, log the status code, and then grep the " 404 " results out of the access log.

    (1-1/1)