Skip to content

Instantly share code, notes, and snippets.

@josemiguelq
Created July 16, 2020 22:03
Show Gist options
  • Save josemiguelq/ce1fea5b4b2eef8f0673ea17442e4cbf to your computer and use it in GitHub Desktop.
Save josemiguelq/ce1fea5b4b2eef8f0673ea17442e4cbf to your computer and use it in GitHub Desktop.
http {
log_format main escape=json '{'
'"timestamp":"$time_local",'
'"remote_addr":"$remote_addr",'
'"request":"$request",'
'"request_method":"$request_method",'
'"request_uri":"$request_uri",'
'"status_code":"$status",'
'"http_user_agent":"$http_user_agent",'
'"http_x_forwarded_for":"$http_x_forwarded_for",'
'"http_referer":"$http_referer",'
'"remote_user":"$remote_user",'
'"scheme":"$scheme"'
'}';
access_log /dev/stdout main;
error_log /dev/stderr error;
.
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment