nginx_log 440 B

12345678910111213141516
  1. awk '{print $7"\t"$9"\t"$10}' access.log | head -n 1
  2. /sbw/ent/to 200 8130
  3. #某时段浏量
  4. awk 'BEGIN{sum=0}/2018:14/{sum+=$10}END{print sum/1024/1024"M"}' access.log
  5. awk '/2018:14/{split($7, myurl, "?");print myurl[1];}' access.log | sort | uniq -c | sort -rn | head -10
  6. awk '/2018:14.*upload\/card\/.*\.jpg/{sum+=$10}END{print sum/1024/1024"M"}' access.log
  7. awk '/2018:10.*upload\/card\/.*\.jpg/{print $1"\t"$7"\t"$10}' access.log