No commit activity in last 3 years
No release in over 3 years
Push Rails logs also to Graylog2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3

Runtime

 Project Readme

rails-graylogger

Rails logs to Graylog2

Build Status

Configuring Middleware

Add the following to config/application.rb:

config.middleware.insert_before Rack::Runtime, RailsGraylogger::Middleware
config.after_initialize do
  config.logger = Rails.logger = RailsGraylogger::Logger.new(Rails.logger)
end

Watching output without graylog2

One way is to use logstash to listen for gelf input and output it to a file

Config:

input {
  gelf {
  }
}
output {
  file {
    path => "/tmp/test.log"
  }
}
brew install logstash
logstash -f <path_to_config>