# Monitoring/Alerting on production.log

**URL:** <https://www.ruby-forum.com/t/monitoring-alerting-on-production-log/85750>\
**Category:** Deployment\
**Created:** [February 16, 2007, 1:21am UTC](https://www.ruby-forum.com/t/monitoring-alerting-on-production-log/85750 "2007-02-16T01:21:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![esconsult1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/cdc98d/32.png) [@esconsult1](https://www.ruby-forum.com/u/esconsult1)\
**Post date:** [February 16, 2007, 1:21am UTC](https://www.ruby-forum.com/t/monitoring-alerting-on-production-log/85750/1 "2007-02-16T01:21:32Z")

</div>

Is there a way to monitor the production logfile so that when an error  
occurs, it can trap and email the error to me? Alternatively, is it  
possible to write errors out to a separate logfile.

A few months ago I read something where a couple of guys where doing  
this on their production site. Their goal was to get errors down to  
practically zero in a short period of time.

I know its possible to hack the logging to get something like this in  
place, just wanted to know if someone already had a solution before I  
started re-inventing the wheel.

Regards

- Ericson S.

---

<div class="post-metadata">

**Author:** ![esconsult1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/cdc98d/32.png) [@esconsult1](https://www.ruby-forum.com/u/esconsult1)\
**Post date:** [February 16, 2007, 1:30am UTC](https://www.ruby-forum.com/t/monitoring-alerting-on-production-log/85750/2 "2007-02-16T01:30:33Z")

</div>

Check out the exception\_notifications plugin. That might be what you  
are looking for.

-carl

On 2/15/07, esconsult1 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> place, just wanted to know if someone already had a solution before I  
> started re-inventing the wheel.
> 
> Regards
> 
> - Ericson S.
> 
> >

–  
EPA Rating: 3000 Lines of Code / Gallon (of coffee)

---

<div class="post-metadata">

**Author:** ![esconsult1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/cdc98d/32.png) [@esconsult1](https://www.ruby-forum.com/u/esconsult1)\
**Post date:** [February 16, 2007, 1:37am UTC](https://www.ruby-forum.com/t/monitoring-alerting-on-production-log/85750/3 "2007-02-16T01:37:33Z")

</div>

Hi,

2007/2/16, esconsult1 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> place, just wanted to know if someone already had a solution before I  
> started re-inventing the wheel.

You may have a look at Exception Notification plugin :  
[http://wiki.rubyonrails.org/rails/pages/ExceptionNotification](http://wiki.rubyonrails.org/rails/pages/ExceptionNotification)

Rails will send you mails when exception occurs.

– Jean-François.

–  
Ruby ( [http://www.rubyfrance.org](http://www.rubyfrance.org) ) on Rails ( [http://www.railsfrance.org](http://www.railsfrance.org)  
)

---

<div class="post-metadata">

**Author:** ![esconsult1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/cdc98d/32.png) [@esconsult1](https://www.ruby-forum.com/u/esconsult1)\
**Post date:** [February 16, 2007, 1:45am UTC](https://www.ruby-forum.com/t/monitoring-alerting-on-production-log/85750/4 "2007-02-16T01:45:33Z")

</div>

Excellent, that’s exactly it. Thanks a lot.

For those looking for a source itself:  
[http://wiki.rubyonrails.org/rails/pages/ExceptionNotification](http://wiki.rubyonrails.org/rails/pages/ExceptionNotification)

And some more info:  
[http://www.railsweenie.com/forums/2/topics/812](http://www.railsweenie.com/forums/2/topics/812)

- Ericson S.
