cat /var/log/httpd/[ログファイル名] | grep "GET [URL]"| perl -anle 'printf "cnt:%7d avg:%.3f\n" , ++$i, ($x += $F[$#F]) / $i / 1000000' | tail -3
More than 5 years have passed since last update.
末尾にマイクロタイムでサーバーの処理時間が入ってるアクセスログを集計して直近3件分出すワンライナー
Last updated at Posted at 2014-01-27
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00