Skip to content

Instantly share code, notes, and snippets.

@i-sync
Created December 13, 2023 13:22
Show Gist options
  • Save i-sync/dc9dd99c20dc8d76ff48a8974cbf8e75 to your computer and use it in GitHub Desktop.
Save i-sync/dc9dd99c20dc8d76ff48a8974cbf8e75 to your computer and use it in GitHub Desktop.
nginx log format
log_format custom_format '$remote_addr - $remote_user [$time_local] "$host $request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'$request_time';
access_log /var/log/nginx/access.log custom_format;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment