Hi, I''m looking for a tool that can go through the production / test log files and give me some statistics on performance. Nothing fancy, just the information on how much time is spent on different actions (render / DB). For production, I''m using a mongrel cluster, so the log file includes the data from all instances... Any suggestions? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 29 Oct 2007, at 15:37, helzer wrote:> > Hi, > > I''m looking for a tool that can go through the production / test log > files and give me some statistics on performance. Nothing fancy, just > the information on how much time is spent on different actions > (render / DB). > > For production, I''m using a mongrel cluster, so the log file includes > the data from all instances... >pl_analyze (gem install production_log_analyzer) can do this, but requires that your logfiles have a certain format (you need to be using a syslog logger) Fred> Any suggestions? > > Thanks, > Helzer > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Fred, I got the gem installed and the syslogger, syslog-ng packages, but I can''t configure the syslog correctly. Do you know of any instructions that I can follow? I''m running on Ubuntu. Thanks, Amir --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 29 Oct 2007, at 16:16, helzer wrote:> > Hi Fred, > > I got the gem installed and the syslogger, syslog-ng packages, but I > can''t configure the syslog correctly. > Do you know of any instructions that I can follow? I''m running on > Ubuntu. >We let our sysadmins worry about that :-) In our production.rb we put gem ''rails_analyzer_tools'' require ''analyzer_tools/syslog_logger'' config.logger = SyslogLogger.new ''re5ult'' config.logger.level = Logger::INFO which seems to do the trick Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I found myself going round in trial-and-error circles using the syslogger solution suggested by the documentation that goes along with those gems. Save yourself the bother and take a look at http://nubyonrails.com/articles/a-hodel-3000-compliant-logger-for-the-rest-of-us You will still need the gems to analyze the logs, but just use the code provided by Geoffrey Grosenbach to get your logs into the correct format. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---