Skip to content

Instantly share code, notes, and snippets.

@lunetics
Last active August 29, 2015 14:21
Show Gist options
  • Save lunetics/5f35338ff1564724fdc7 to your computer and use it in GitHub Desktop.
Save lunetics/5f35338ff1564724fdc7 to your computer and use it in GitHub Desktop.
access.format = "[%{%Y-%m-%dT%H:%M:%S%z}t] requestid:%{REQUEST_ID}e frontendip:%R frontendhost:%{SERVER_HOSTNAME}e host:%{HTTP_HOST}e clientip:%{REAL_IP}e https:%{HTTPS}e verb:%m response:%s fpm_pool:%n request:\"%{REQUEST_URI}e%Q%q\" script_filename:%f php_process_time:%{micro}d php_process_bytes:%{bytes}M php_cpu_user:%{user}C%% php_cpu_system:%{system}C%% php_cpu_total:%{total}C%%"
log_format logstash '$host $hostname "$http_x_forwarded_for" "$content_type" $pipe $remote_addr - $remote_user [$time_iso8601] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" '
'upstream $upstream_addr upstream_time $upstream_response_time request_time $request_time '
'$request_id';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment