mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
add main_ext for extended logging (#1254)
* add main_ext for extended logging
This commit is contained in:
committed by
Fabian Franz BSc
parent
a4690077fb
commit
49ef80e9f6
@@ -638,6 +638,7 @@
|
||||
<default>main</default>
|
||||
<OptionValues>
|
||||
<main>Default</main>
|
||||
<main_ext>Extended</main_ext>
|
||||
<anonymized>Anonymized</anonymized>
|
||||
<disabled>Disabled</disabled>
|
||||
</OptionValues>
|
||||
@@ -780,6 +781,7 @@
|
||||
<default>main</default>
|
||||
<OptionValues>
|
||||
<main>Default</main>
|
||||
<main_ext>Extended</main_ext>
|
||||
<anonymized>Anonymized</anonymized>
|
||||
<disabled>Disabled</disabled>
|
||||
</OptionValues>
|
||||
|
||||
@@ -6,6 +6,14 @@ include mime.types;
|
||||
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 main_ext '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for" '
|
||||
'"$host" sn="$server_name" '
|
||||
'rt=$request_time '
|
||||
'ua="$upstream_addr" us="$upstream_status" '
|
||||
'ut="$upstream_response_time" ul="$upstream_response_length" '
|
||||
'cs=$upstream_cache_status' ;
|
||||
log_format handshake '"$http_user_agent" "$ssl_ciphers" "$ssl_curves"';
|
||||
log_format anonymized ':: - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
|
||||
Reference in New Issue
Block a user