$ancient_browser 如果瀏覽器被識別為舊式瀏覽器,該值等於 ancient_browser_value 的值
$arg_{name} 請求中某個參數值
$args 請求url里的參數
$binary_remote_addr (ngx_http_core_module,ngx_stream_core_module) 二進制; 4個字節的IPV4或16個字節的IPV6
$body_bytes_sent 響應客戶端的字節數,不包括響應頭部
$bytes_received 從客戶端收到的字節數
$bytes_sent (ngx_http_core_module, ngx_http_log_module,ngx_stream_core_module) 響應客戶端的字節數
$connection (ngx_http_core_module,ngx_http_log_module,ngx_stream_core_module) 連接的序列號
$connection_requests (ngx_http_core_module, ngx_http_log_module) 連接當前的請求數量
$connections_active 當前連接數包括等待連接數
$connections_reading 正在讀取請求數據的連接數
$connections_waiting 等待請求的空閑連接數
$connections_writing 正在響應數據的連接數
$content_length 請求頭字段;請求內容大小
$content_type 請求頭字段;請求內容類型
$cookie_ 讀取cookie_name的值
$date_gmt 當前的gmt時間
$date_local 當前時間local time zone
$document_root 當前請求root or alias 指令指向的值
$document_uri, $uri 當前請求的uri
$gzip_ratio 壓縮比
$host 請求頭里的host字段
$hostname (ngx_http_core_module,ngx_stream_core_module)
$http2
$http_ 請求頭字段, 解析請求值
$https on https模式下運行,否則空字符串即可
$invalid_referer nginx會通過查看referer字段和valid_referers后面的referer列表進行匹配,如果匹配到了就invalid_referer字段值為0 否則設置該值為1
$is_args 是否有參數
$limit_conn_status (ngx_http_limit_conn_module, ngx_stream_limit_conn_module) 連接超過策略
$limit_rate 限制同一IP流量
$limit_req_status 限制同一個IP某段時間的訪問量
$memcached_key 從memcached_pass里讀取一個存在的key
$modern_browser 如果瀏覽器被識別為新式瀏覽器,該值等於 modern_browser_value 的值
$msie ==1 就是任何IE的版本
$nginx_version (ngx_http_core_module,ngx_stream_core_module) nginx版本
$pid (ngx_http_core_module,ngx_stream_core_module) worker_process的進程號(PID)
$protocol tcp | udp
$proxy_add_x_forwarded_for 是用來識別通過HTTP代理或負載均衡方式連接到Web服務器的客戶端最原始的IP地址的HTTP請求頭字段
$proxy_host 代理服務 proxy_pass 的name:port
$proxy_port 代理服務 proxy_pass 的port
$proxy_protocol_addr (ngx_http_core_module,ngx_stream_core_module,ngx_http_core_module,ngx_stream_core_module) 代理協議頭里的客戶端地址
$proxy_protocol_server_addr (ngx_http_core_module,ngx_stream_core_module,ngx_http_core_module,ngx_stream_core_module) 代理協議頭里的服務端地址
$query_string 與$args 一樣都是請求的參數
$realip_remote_addr (ngx_http_realip_module,ngx_stream_realip_module,ngx_http_realip_module,ngx_stream_realip_module) 原始的客戶端IP
$realpath_root root,alias 絕對路徑
$remote_addr (ngx_http_core_module,ngx_stream_core_module,ngx_http_core_module,ngx_stream_core_module) 客戶端地址
$remote_user Basic authentication的用戶名
$request 完整的原始請求
$request_body 請求體
$request_body_file 請求體你的臨時文件
$request_completion 完成狀態: "OK"; 未完成 ""
$request_filename 請求的資源路徑
$request_id 請求的唯一標識
$request_length (ngx_http_core_module,ngx_http_log_module) 請求的長度(包括請求行,請求頭,請求體)
$request_method 請求方式 GET POST
$request_time (ngx_http_core_module,ngx_http_log_module) 請求事件 ms
$request_uri 請求的原始uri帶參數的
$scheme http or https
$secure_link 連接狀態 實現下載防盜鏈
$secure_link_expires 連接過期時間
$sent_http_ 讀取。響應任意頭字段,全小寫,用下划線代替短橫線
$sent_trailer_ 讀取。響應結束時發送的任意字段,全小寫,用下划線代替短橫線
$server_addr (ngx_http_core_module,ngx_stream_core_module) 處理請求的服務地址
$server_name 處理請求的服務名
$server_port (ngx_http_core_module,ngx_stream_core_module) 處理請求的服務端口
$server_protocol 請求的協議 http/1.0 http/1.1 http/2.0
$session_log_binary_id sessionId (16bytes)
$session_log_id sessionId
$session_time session時長,ms
$slice_range 大文件切片范圍
$status (ngx_http_core_module,ngx_http_log_module,ngx_stream_core_module) 響應狀態