jinjianming commented on issue #9440:
URL: https://github.com/apache/apisix/issues/9440#issuecomment-2099973943

   ```
       nginx_config:    # config for render the template to genarate nginx.conf
         error_log: "/usr/local/apisix/logs/error.log"
         error_log_level: "warn"    # warn,error
         worker_processes: "auto"
         enable_cpu_affinity: true
         worker_rlimit_nofile: 20480  # the number of files a worker process 
can open, should be larger than worker_connections
         event:
           worker_connections: 10620
         http:
           enable_access_log: true
           access_log: "/usr/local/apisix/logs/access.log"
           access_log_format: '{"content":{"@timestamp": "$time_local", 
"client_ip": "$remote_addr", "status": "$status", "method": "$request_method", 
"uri": "$request_uri", "version": "$server_protocol", "body_bytes_sent": 
"$body_bytes_sent
   ", "http_referer": "$http_referer", "http_x_register_referrer": 
"$http_x_register_referrer", "http_user_agent": "$http_user_agent", 
"request_length": "$request_length", "upstream_connect_time": 
"$upstream_connect_time", "upstream_header_t
   ime": "$upstream_header_time", "request_time": "$request_time", 
"upstream_addr": "$upstream_addr",  "upstream_response_length": 
"$upstream_response_length", "upstream_response_time": 
"$upstream_response_time", "upstream_status": "$upstrea
   m_status", "host": "$host", "req_id": "$request_id"}}'
           # access_log_format: '{"@timestamp": "$time_local", "client_ip": 
"$remote_addr", "status": "$status", "method": "$request_method", "uri": 
"$request_uri", "version": "$server_protocol", "body_bytes_sent": 
"$body_bytes_sent", "http_
   referer": "$http_referer", "http_x_register_referrer": 
"$http_x_register_referrer", "http_user_agent": "$http_user_agent", 
"request_length": "$request_length", "upstream_connect_time": 
"$upstream_connect_time", "upstream_header_time": "$u
   pstream_header_time", "request_time": "$request_time", "upstream_addr": 
"$upstream_addr",  "upstream_response_length": "$upstream_response_length", 
"upstream_response_time": "$upstream_response_time", "upstream_status": 
"$upstream_status"
   , "host": "$host", "req_id": "$request_id"}'
           access_log_format_escape: json
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to