Logstasher's tagline is Awesome Logging for Rails !!, and it does what it says.
we have been using it in prod, and it's working fine.
Our logging setup is Logstasher -> Filebeat Sidecar -> Logstash -> Elasticsearch -> Kibana
- Logstasher for json fomatted logs
- Filebeat to ship the logs to ELK Stack
- install gem by adding it in gemfile and bundle install
- edit rails env config file, for prod
config/environments/production.rb
in configure block add follwing, and you will see logs in log/logstasher.log
# Enable the logstasher logs for the current environment
config.logstasher.enabled = true
# This line is optional if you do not want to suppress app logs in your <environment>.log
config.logstasher.suppress_app_log = false
config.logstasher.log_controller_parameters = true
# This line is optional, defaults to log/logstasher_<environment>.log
config.logstasher.logger_path = 'log/logstasher.log'