nginx 4 층 에이전트 로그 설정

454 단어 nginx4 층 로그
stream 세그먼트 에 설정:
log_format proxy '$remote_addr [$time_local]'
                '$protocol $status $bytes_sent $bytes_received'
                '$session_time "$upstream_addr" '
                '"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
access_log /var/log/nginx/tcp-access.log proxy ;
error_log  /var/log/nginx/tcp-error.log warn ;

좋은 웹페이지 즐겨찾기