-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only log controller parameters when configured to. #20
Conversation
This adds a new config option `log_controller_parameters`, that defaults to false. This needs to be set to true to enable logging of the params hash, otherwise this is omitted. Rationale: The change in #14 has implications that are not immediately obvious. It will cause the elasticsearch mapping for the parameters field to become a new dynamic mapping that gets indexed. This can lead to collisions if different apps use the same params key with different types, which results in log messages being lost. It also causes the indexes to become significantly larger (in our case, this change tripled the size). In light of this, I think the not logging these fields by default is the correct choice.
Thanks for this. We have some actions with quite a few parameters, and our log size simply exploded. I'd like to see this merged into master. |
Using our branch until shadabahmed/logstasher#20 is merged
Would definitely be more than useful, as new settings often make logged requests huge. |
Looks like i can't find
|
Missing a trailing 'g' - 'disable_parameter_logging' |
Oopsies .. done and released ..
|
Hi, unless I'm missing something, the change didn't get merged in, only the version bumped... |
I am totally lost today - apologies - all merged now in 0.4.8 |
No worries, I know the feeling... Thanks for merging. |
Now that shadabahmed/logstasher#20 has been merged
This adds a new config option
log_controller_parameters
, that defaults to false. This needs to be set to true to enable logging of the params hash, otherwise this is omitted.Rationale:
The change in #14 has implications that are not immediately obvious. It will cause the elasticsearch mapping for the parameters field to become a new dynamic mapping that gets indexed. This can lead to collisions if different apps (or even different controllers within the same app) use the same params key with different types, which results in log messages being lost. It also causes the indexes to become significantly larger (in our case, this change tripled the size).
In light of this, I think the not logging these fields by default is the correct choice.