nginx: send access_log to journald
This commit is contained in:
parent
fada245b8f
commit
e6edfb4aa8
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,12 @@ in
|
|||
appendConfig = ''
|
||||
# Number of CPU cores
|
||||
worker_processes 8;
|
||||
|
||||
log_format combined_host '$host - $remote_addr - $remote_user [$time_local] '
|
||||
'"$request" $status $body_bytes_sent '
|
||||
'"$http_referer" "$http_user_agent"';
|
||||
|
||||
access_log syslog:server=unix:/dev/log combined_host;
|
||||
'';
|
||||
eventsConfig = ''
|
||||
worker_connections 1024;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue