Skip to content

Instantly share code, notes, and snippets.

@sergeycherepanov
Last active April 23, 2018 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergeycherepanov/aa8621308833463bdf91cfa5fd3091d8 to your computer and use it in GitHub Desktop.
Save sergeycherepanov/aa8621308833463bdf91cfa5fd3091d8 to your computer and use it in GitHub Desktop.
map $_project_name $project_name {
default undefined;
}
map $_pool $pool {
default undefined;
}
map $_php_version $php_version {
default undefined;
}
map $_cgi_index $cgiIndex {
default undefined;
}
log_format access_json '{'
'"host": "$host", '
'"document_root": "$document_root", '
'"project": "$_project_name", '
'"pool": "$_pool", '
'"php_version": "$_php_version", '
'"cgi_index": "$_cgi_index", '
'"remote_addr": "$remote_addr", '
'"remote_user": "$remote_user", '
'"time_local": "$time_local", '
'"status": "$status", '
'"request": "$request", '
'"http_referer": "$http_referer", '
'"http_user_agent": "$http_user_agent", '
'"body_bytes_sent": "$body_bytes_sent", '
'"request_time": "$request_time", '
'"upstream_response_time": "$upstream_response_time", '
'"pipe": "$pipe"'
'}';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment