日誌格式
錯誤日誌格式
請注意,所有錯誤日誌格式都是相同的。
格式: local_time [log_level] Process_id#Thread_id *Connection_id Module_name [language] file_name:line_number: function_name(): log_body, protocol client_address, server_address
示例: 2021/03/19 16:30:56 [error] 3393524#3393524: *934186 stream [lua] dns.lua:29: go(): rewrite phase failed: nil, udp client: 127.0.0.1, server: 0.0.0.0:53
DNS 訪問日誌格式
格式:Unix_timestamp: [local_time] remote_addr (client_subnet) DNS_query_type host [client_country] [client_province] [client_isp] [DNS_record]
示例:1616140331576: [2021-03-19 15:52:11] 127.0.0.1 (127.0.0.1) A www.openresty.com [US] [California] [Verizon] [A: 127.0.0.1]