Ruby on Rails

Configure Ruby on Rails Log Source with observIQ

Supported Versions

Rails versions

  • 6.x
  • 5.x
  • 4.x

Supported Platforms

Source

Windows

Linux

Mac

Kubernetes

Openshift

Ruby on Rails

Prerequisites

Create config/initializers/lograge.rb on the host.

Rails.application.configure do
    config.lograge.enabled = true
    config.lograge.formatter = Lograge::Formatters::Json.new
    config.colorize_logging = false
    config.lograge.logger = ActiveSupport::Logger.new(File.join(Rails.root, 'log', "#{Rails.env}.log"))
end 

Configuration

Option

Description

File Log Path

Specify a single path or multiple paths to read one or many files. You may also use a wildcard (*) to read multiple files within a directory.

Exclude File Path

Specify a single path or multiple paths to exclude one or many files from being read. You may also use a wildcard (*) to exclude multiple files from being read within a directory.

Start At

Choose whether to start reading from the beginning or end of a file with "end" being the default.

Log Types

Types

rails

Dashboards

Users can configure dashboards using visualizations. More information can be found on our visualizations and dashboards page.

Advanced

For more information on the advanced configuration capabilities, see our detailed plugin guide here.