$9はログのフォーマットに合わせて変更が必要。
cat /path/to/nginx/logs/hoge.access.log | awk '{req[$9]=req[$9]+1} END {for(key in req){print key"\t"req[key] }}'
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
$9はログのフォーマットに合わせて変更が必要。
cat /path/to/nginx/logs/hoge.access.log | awk '{req[$9]=req[$9]+1} END {for(key in req){print key"\t"req[key] }}'
Register as a new user and use Qiita more conveniently
Go to list of users who liked