# Is there any Plugins for log file analysis in ruby?

**URL:** <https://www.ruby-forum.com/t/is-there-any-plugins-for-log-file-analysis-in-ruby/159073>\
**Category:** Ruby\
**Created:** [January 31, 2009, 7:55am UTC](https://www.ruby-forum.com/t/is-there-any-plugins-for-log-file-analysis-in-ruby/159073 "2009-01-31T07:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ac91a4/32.png) [@vikas](https://www.ruby-forum.com/u/vikas)\
**Post date:** [January 31, 2009, 7:55am UTC](https://www.ruby-forum.com/t/is-there-any-plugins-for-log-file-analysis-in-ruby/159073/1 "2009-01-31T07:55:14Z")

</div>

Hello all,

Problem - 1)

```
     I want to retrieve some info from development.log file using

```

plugins.  
In early stage i decided to use Regular Expression to retrieve required  
data but i want to use plugin for that.  
So can anyone tell me which plugins are available for analyzing(reading)  
“development.log” file .

problem - 2)

how i execute the ruby program on unix’s cron job utility.?

---

<div class="post-metadata">

**Author:** ![vikas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ac91a4/32.png) [@vikas](https://www.ruby-forum.com/u/vikas)\
**Post date:** [January 31, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/is-there-any-plugins-for-log-file-analysis-in-ruby/159073/2 "2009-01-31T22:20:48Z")

</div>

On 31.01.2009 07:55, Vikas G. wrote:

> Problem - 1)
> 
> ```
> I want to retrieve some info from development.log file using
> 
> ```
> 
> plugins.  
> In early stage i decided to use Regular Expression to retrieve required  
> data but i want to use plugin for that.  
> So can anyone tell me which plugins are available for analyzing(reading)  
> “development.log” file .

What format is that?

> problem - 2)
> 
> how i execute the ruby program on unix’s cron job utility.?

Like any other program.

robert

---

<div class="post-metadata">

**Author:** ![vikas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ac91a4/32.png) [@vikas](https://www.ruby-forum.com/u/vikas)\
**Post date:** [February 2, 2009, 5:32am UTC](https://www.ruby-forum.com/t/is-there-any-plugins-for-log-file-analysis-in-ruby/159073/3 "2009-02-02T05:32:05Z")

</div>

On Sat, Jan 31, 2009 at 8:55 AM, Vikas G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> “development.log” file .
> 
> problem - 2)
> 
> ## how i execute the ruby program on unix’s cron job utility.?
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

I wrote a blog post with a quick log file parser that might help you at  
[http://ramblingsonrails.com/a-rails-log-parser-to-show-how-your-actions-are-performing](http://ramblingsonrails.com/a-rails-log-parser-to-show-how-your-actions-are-performing)

If you’re working with rails, you could write a rake task and call that  
from  
cron or just run a ruby script directly like:

- 
  - 
    - 
      - 
        - /usr/bin/ruby /path/to/your/ruby/script.rb

–  
Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)  
[http://www.linkedin.com/in/andrewtimberlake](http://www.linkedin.com/in/andrewtimberlake)

“I have never let my schooling interfere with my education” - Mark Twain

---

<div class="post-metadata">

**Author:** ![vikas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ac91a4/32.png) [@vikas](https://www.ruby-forum.com/u/vikas)\
**Post date:** [February 2, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/is-there-any-plugins-for-log-file-analysis-in-ruby/159073/4 "2009-02-02T23:15:50Z")

</div>

- Andrew T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Sat, Jan 31, 2009 at 8:55 AM, Vikas G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > how i execute the ruby program on unix’s cron job utility.?
> 
> If you’re working with rails, you could write a rake task and call that from  
> cron or just run a ruby script directly like:
> 
> - 
> - 
> - 
> - 
> - /usr/bin/ruby /path/to/your/ruby/script.rb

If you’re running a Rake task, most of these will expect the root of  
your  
Rails project to be the current directory. Unless running in development  
you will also want to specify the environment:

m h \* \* \* (cd /path/to/project; RAILS\_ENV=production /usr/bin/rake  
my:task)

–  
Lars H.

“If anyone disagrees with anything I say, I am quite prepared not only  
to  
retract it, but also to deny under oath that I ever said it.” -Tom  
Lehrer
