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;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] '
|
||||
'"$request" $status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
log_format splunky '$msec code=$status url=$uri bytes=$body_bytes_sent ms=$request_time';
|
||||
access_log /usr/local/nginx/logs/access.log splunky;
|
||||
|
||||
sendfile on;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue