-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Supersede log-format-escape-json
with log-format-params
#8105
Comments
@mattoberle: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I wanted to open this issue for discussion to gauge interest before putting together a PR. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Background
The ConfigMap currently supports a boolean option named
log-format-escape-json
."false"
setslog_format escape=default
"true"
setslog_format escape=json
Nginx's
log_format
directive offers a third option,none
, which is not represented by the boolean config value.Proposal
Introduce a new ConfigMap option to support all available parameters:
log-format-params
The
access_log
directive parameters are configurable viaaccess-log-params
which was introduced in #3702.Using a similar option here is more consistent than the parameter-specific boolean and removes the need to create additional ConfigMap keys if additional
log_format
parameters are introduced in the future.Example Use Case
Let's say I want to construct a
lua
plugin to write JSON log lines that are more complex than flat key/value pairs.eg.
With
escape=json
:With
escape=default
:With
escape=none
:The text was updated successfully, but these errors were encountered: