nginx logs for splunk
This commit is contained in:
parent
4f67b72801
commit
6eb1e461fb
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue