LoginSignup
0
0

More than 5 years have passed since last update.

末尾にマイクロタイムでサーバーの処理時間が入ってるアクセスログを集計して直近3件分出すワンライナー

Last updated at Posted at 2014-01-27
cat /var/log/httpd/[ログファイル名] | grep "GET [URL]"| perl -anle 'printf "cnt:%7d avg:%.3f\n" , ++$i, ($x += $F[$#F]) / $i / 1000000' | tail -3
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0