Analysing of production.log

Added by Karl Heinz Marbaise about 10 years ago

I have installed Redmine on production via mongrels-Cluster and it works very well....but i would like to know how many hit/views/visitors etc. are coming to my page and may be more... (Things like for Apache Web-Sites)

I have customized the log format based on some suggestions in a Book (Advanced Rails Recipes from April 2008..)..written my own (very simple) class to do so....
Now there is suggested to use rails-analyser, but it seemed to me that the project is not really up to date...

so my question is: How do you analyze your production log on this redmine installation or what tools do you use to check the information?

I have added the following into my production.rb file (config/environments)

require 'recipes_log_formatter'
config.logger = RAILS_DEFAULT_LOGGER =
config.logger.formatter =
config.logger.level = Logger::INFO

And the RecipesLogFormat class:

class RecipesLogFormatter
  def call(severity, time, program_name, message)
    datetime = time.strftime("%b %d %H:%M:%S")
    message = (String === message ? message : msg.inspect) "#{datetime} -- #{message}\n" 

The code is release 0.8.0 and the environment:

About your application's environment
Ruby version              1.8.6 (x86_64-linux)
RubyGems version          1.3.0
Rails version             2.1.1
Active Record version     2.1.1
Action Pack version       2.1.1
Active Resource version   2.1.1
Action Mailer version     2.1.1
Active Support version    2.1.1
Application root          /usr/local/vhosts/redmine
Environment               development
Database adapter          mysql
Database schema version   101

Kind regards
Karl Heinz Marbaise

Replies (1)

RE: Analysing of production.log - Added by Exequiel Ramirez 2 months ago

Hi! Did you find any solution to detect visitors?