Skip to content

Commit f598f7c

Browse files
Rename agent to user_agent field in nginx log configuration
1 parent 2a6a989 commit f598f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ http {
1313
vhost_traffic_status_zone shared:vhost_traffic_status:16m;
1414

1515
log_format json escape=json '{'
16-
'"agent": "$http_user_agent", '
16+
'"user_agent": "$http_user_agent", '
1717
'"body_bytes_sent": "$body_bytes_sent", '
1818
'"bytes_sent": "$bytes_sent", '
1919
'"clientip": "$remote_addr", '

0 commit comments

Comments
 (0)