You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails has a logger configuration option: .log_tags:
config.log_tags accepts a list of: methods that the request object responds to, a Proc that accepts the request object, or something that responds to to_s. This makes it easy to tag log lines with debug information like subdomain and request id - both very helpful in debugging multi-user production applications.
Is it a good Idea to include entries specified in config.log_tags to logstash log as well? If so I will be happy to create a PR.
It would be nice to have these tags appearing in logstash logs as well. I.e. given the previous example, the corresponding logstash log entry would be as following:
The only thing I'm concerned of is we might break existing applications if they use log_tags, but do not expect them to appear in Kibana. :) How about introducing new configuration option, like:
Rails has a logger configuration option:
.log_tags
:Is it a good Idea to include entries specified in
config.log_tags
to logstash log as well? If so I will be happy to create a PR.http://guides.rubyonrails.org/configuring.html#rails-general-configuration
The text was updated successfully, but these errors were encountered: