-
i use helm to install kong, i find that i cannot start kong-dp normal if i try to customze kong gateway logs. now the dataplane of kong-gateway cannot run normal. how i can do to solve this problem? hope someone help me, thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
kong@kong-dp-kong-74c888c65f-vzk2n:/kong_prefix$ more nginx.conf error_log /dev/stderr notice; injected nginx_main_* directivesdaemon off; include 'nginx-inject.conf'; events { http { kong@kong-dp-kong-74c888c65f-vzk2n:/kong_prefix$ cat nginx-kong.conf error_log /dev/stderr notice; lua_package_path '/opt/?.lua;/opt/?/init.lua;;;;;'; include 'nginx-kong-inject.conf'; lua_shared_dict kong 5m; underscores_in_headers on; injected nginx_http_* directivescharset UTF-8; uninitialized_variable_warn off; init_by_lua_block { init_worker_by_lua_block { exit_worker_by_lua_block { log_format kong_log_format '$remote_addr - $remote_user [$time_local] ' Load variable indexeslua_kong_load_var_index default; upstream kong_upstream {
} server {
} server {
} server {
} server {
} server { |
Beta Was this translation helpful? Give feedback.
-
@randmonkey Could you help to take a look of this issue? |
Beta Was this translation helpful? Give feedback.
-
i take two of env in values.yaml, it's mistake.... change to like it: data_plane nodes do not have a databaserole: data_plane it can do well |
Beta Was this translation helpful? Give feedback.
i take two of env in values.yaml, it's mistake.... change to like it:
env:
data_plane nodes do not have a database
role: data_plane
database: "off"
log_level: notice
router_flavor: "traditional_compatible"
nginx_worker_processes: "4"
proxy_access_log: /dev/stdout
proxy_access_log: /dev/stdout custom_format
#nginx_http_log_format: custom_format escape=json '{"@timestamp":"$time_iso8601","host":"$host","request":"$request","request_body":"$request_body","remote_addr":"$remote_addr","uri":"$uri","upstream_addr":"$upstream_addr","request_time":"$request_time","upstream_status":"$upstream_status","upstream_header_time":"$upstream_header_time","upstream_response_time":"$upstream_response_time",…