Is there any Plugins for log file analysis in ruby?

V

Vikas Gholap

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.?
 
R

Robert Klemme

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
 
A

Andrew Timberlake

[Note: parts of this message were removed to make it a legal post.]

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.?
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

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 Timberlake
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

"I have never let my schooling interfere with my education" - Mark Twain
 
L

Lars Haugseth

* Andrew Timberlake said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,518
Latest member
TobiasAxf

Latest Threads

Top