From 1701a1d2d4953e9b2f331e381291afe6bb03cd02 Mon Sep 17 00:00:00 2001 From: Sergey Pyankov Date: Tue, 5 Sep 2023 08:21:00 +0500 Subject: [PATCH] docs: Add notes about `ingress_upstreaminfo` log format for `parse_nginx_log()` function temp --- website/cue/reference/remap/functions/parse_nginx_log.cue | 6 ++++-- website/cue/reference/urls.cue | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/website/cue/reference/remap/functions/parse_nginx_log.cue b/website/cue/reference/remap/functions/parse_nginx_log.cue index 0fd6c04f1a6f17..61e9fc66c74501 100644 --- a/website/cue/reference/remap/functions/parse_nginx_log.cue +++ b/website/cue/reference/remap/functions/parse_nginx_log.cue @@ -3,8 +3,10 @@ package metadata remap: functions: parse_nginx_log: { category: "Parse" description: """ - Parses Nginx access and error log lines. Lines can be in [`combined`](\(urls.nginx_combined)), or [`error`](\(urls.nginx_error)) format. - """ + + Parses Nginx access and error log lines. Lines can be in [`combined`](\(urls.nginx_combined)), + [`ingress_upstreaminfo`](\(urls.nginx_ingress_upstreaminfo)) or [`error`](\(urls.nginx_error)) format. + """ notices: [ """ Missing information in the log message may be indicated by `-`. These fields are omitted in the result. diff --git a/website/cue/reference/urls.cue b/website/cue/reference/urls.cue index b8aad39e8175d6..6528af723cfd34 100644 --- a/website/cue/reference/urls.cue +++ b/website/cue/reference/urls.cue @@ -376,6 +376,7 @@ urls: { new_transform: "\(vector_repo)/issues/new?labels=type%3A+new+feature" nginx: "https://www.nginx.com/" nginx_combined: "https://nginx.org/en/docs/http/ngx_http_log_module.html" + nginx_ingress_upstreaminfo: "https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/log-format/" nginx_error: "https://github.com/nginx/nginx/blob/branches/stable-1.18/src/core/ngx_log.c#L102" nginx_stub_status_module: "http://nginx.org/en/docs/http/ngx_http_stub_status_module.html" nix: "https://nixos.org/nix/"