Tag Archives: log format

How to add the request parameters along with in lograge outputted files

Here is how to include the request parameters n lograge formatted log files. Lograge is a RubyGem that modifies the rails log format for you so it’s easier to parse by parsers like Logstash, for example. Here is what needs to be added to each file: Gemfile: config/environments/production.rb app/controllers/application_controller.rb

Logstash Rails – Collecting / Aggregating Rails Log Stacktrace with Logstash shipper agent

How to prepare and aggregate Rails logs for Logstash: Before tagging your stacktrace events from your Rails production.log, for example, you will want to write a multiline filter in Logstash which will include each stacktrace event as a separate entry. Each section of your Rails log starts with the word “Processing” and ends with two […]