nginx logs for splunk

This commit is contained in:
Michael Sofaer and Raphael Sofaer 2010-11-26 10:03:52 -05:00
parent 4f67b72801
commit 6eb1e461fb

View file

@ -14,9 +14,8 @@ http {
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] ' log_format splunky '$msec code=$status url=$uri bytes=$body_bytes_sent ms=$request_time';
'"$request" $status $body_bytes_sent "$http_referer" ' access_log /usr/local/nginx/logs/access.log splunky;
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on; sendfile on;