-
Notifications
You must be signed in to change notification settings - Fork 458
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
[Feature] Proxy logging improvements #1143
Comments
In Kamal 1 we used the logging options from the app config for the proxy. But that's not something that we want to do anymore since Kamal 2 supports running multiple apps through one proxy so the apps could have conflicting settings. If you are only deploying one app though to a server, that's not a concern and you can use RIght now though it will always try to set a max-size, so that's a bug since it's breaking things for the syslog driver. |
#1152 will you allow you to remove the max size log opt, via |
@djmb Thanks! Your fix combined with |
For anyone else wanting to make changes to the When it came time for me to For me, I found that running the |
Hi there!
I recently attempted to migrate from
kamal
version1.9.1
to2.2.2
and encountered a couple of issues that require some workaround configurations forkamal
andrsyslog
to maintain the original behavior.1. Compliance with
logging.driver
It seems that the container running
kamal-proxy
is not utilizing the specifiedlogging.driver
configuration (if set) and is instead writing logs to a file. This change is unexpected, astraefik
adhered to the logging driver specified in the configuration.Current Configuration:
2. Passing custom docker options to proxy
To address the logging issue, I attempted to set docker options using the
boot_config
command.However, I encountered an error:
It appears that Kamal internally sets the
max-size
option, which conflicts with the syslog log driver. This can be resolved by manually editing.kamal/proxy/options
on host to remove--log-opt max-size=10m
.3. Definition of unwanted log fields
Another useful feature would be the ability to specify fields to exclude from log entries. Currently, the log entries contain many fields that may not be necessary for certain use cases, such as:
Since we can already define
proxy.logging.request_headers
andproxy.logging.response_headers
, I suggest adding aproxy.logging.dropped_fields
array for this purpose.Fields can be filtered out in the rsyslog configuration, but this introduces significant complexity to what is otherwise a straightforward tool.
However, this is likely a feature request for the
kamal-proxy
repo as logging is handled there.Thank you for your hard work on this project! Keep rolling! 🚀 💪
The text was updated successfully, but these errors were encountered: