You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use ngxtop -c conf/nginx.conf -l logs/access.log to specify the log_format. When nginx.conf with commented out log_format as following, I cann't not get the expected result.
# 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 '$remote_addr - $remote_user [$time_local] '
'"$request" $status $request_length $request_time $body_bytes_sent '
'"$http_referer" "$http_user_agent" $server_addr $upstream_addr $host $upstream_cache_status';
After I delete the commented lines, It works as expected.
The text was updated successfully, but these errors were encountered:
use
ngxtop -c conf/nginx.conf -l logs/access.log
to specify the log_format. When nginx.conf with commented out log_format as following, I cann't not get the expected result.# 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 '$remote_addr - $remote_user [$time_local] '
'"$request" $status $request_length $request_time $body_bytes_sent '
'"$http_referer" "$http_user_agent" $server_addr $upstream_addr $host $upstream_cache_status';
After I delete the commented lines, It works as expected.
The text was updated successfully, but these errors were encountered: