0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ログ解析に使うawkコマンドまとめ

Posted at

awk '$NF > 50'

リクエストタイム50秒以上

| awk -F'"' '{print $6}' | sort | uniq -c | sort -nr | head -10

ユーザーエージェント

| awk '{print $9}'| sort | uniq -c | sort -nr

レスポンスヘッダー

| awk '{print $(NF-1)}'| sort | uniq -c | sort -nr | head -n 20

LBある時のIP

awk '$9==2xx'

レスポンスコード指定したいとき

awk '{print $4}' | cut -b 2-15 | sort | uniq -c

時間帯別アクセス数

| awk '{print $7}'| sort | uniq -c | sort -nr

URL

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?