計算 每分鐘 nginx access log 連線數

有時我們需要計算在每分鐘進來的連線數,透過一些腳本很容易知道這些信息
計算 每分鐘 nginx access log 連線數
# awk ‘{ print $4 }’ /var/log/nginx/access.log |awk -F: ‘{print $2 “:” $3 “:” $4 }’|sort|uniq -c
nginx_count_number_per_second

Author: jerryw1974

learning and focus on computer science, cloud infrastructure, virtualization and information security, technical, networking,platform system and cyber-security related topic.