Welcome to WebmasterWorld Guest from 54.144.48.252

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Can i get email notification each time error log added/increase?So faster to response

     
12:28 am on Mar 27, 2012 (gmt 0)

5+ Year Member



Can i get email notification each time error_log added/increase?So faster to response
12:59 am on Mar 27, 2012 (gmt 0)

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Probably not in Apache itself.

However, you could set a cron job that executes every 1-5 minutes and calls a script that checks to see if error_log has changed and send an email if it has.

Not sure I'd want this because if a bad bot hits your site testing vulnerabilities it can easily clutter up error_log with errors that don't really exist and send a lot of worthless email in a hurry.
1:37 am on Mar 27, 2012 (gmt 0)

5+ Year Member



can anyone give me the cron job command example for this please

no problem with a lot of emails, we can disable and enable the cron anytime temporary if needed
1:50 am on Mar 27, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use the ErrorDocument directive to redirect error responses to a script that generates an error page and also sends the admin an E-mail. E.g.:

ErrorDocument 500 /email-error.php
 

Featured Threads

Hot Threads This Week

Hot Threads This Month