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
Archive for 'Log Management'
In my opinion it’s much better using a lightweight log shipper like socat to ship logs to Logstash. This way you can save yourself from running a Java process on the source host where your logs are. You can specify UDP as your Logstash input. The benefit of UDP is that nothing is negatively impacted […]
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 […]