Skip to content

Instantly share code, notes, and snippets.

@throughnothing
Created March 11, 2014 20:59
Show Gist options
  • Save throughnothing/9494950 to your computer and use it in GitHub Desktop.
Save throughnothing/9494950 to your computer and use it in GitHub Desktop.
# NGINX
NGINX_TIMESTAMP %{MONTHDAY}/%{MONTH}/%{YEAR}:%{HOUR}:%{MINUTE}:%{SECOND} %{ISO8601_TIMEZONE}
NGINXCUSTOM %{DATA:request_id} %{NUMBER:status}:%{NUMBER:request_time}:%{NUMBER:upstream_response_time}:%{NUMBER:body_bytes_sent} %{NUMBER:connection} %{IP:remote_ip} %{NOTSPACE:host} %{NOTSPACE:remote_user} \[%{NGINX_TIMESTAMP:timestamp}\] "%{WORD:method} %{NOTSPACE:path} %{NOTSPACE:protocol}" "%{DATA:http_referer}" "%{DATA:user_agent}" "%{DATA:http_forwarded_for}" %{NOTSPACE:upstream_addr} %{GREEDYDATA:upstream_cache_status}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment