LoginSignup
0
0

.gzのログファイルから、条件付きで行数カウントするコマンド

Posted at
zcat access.log-xxxxx.gz | grep '27/May/2023:18:5' | wc -l

grep で絞り込んだ結果を、カウントしてくれます。
IPで絞り込むと、どれくらい来てるカナーと分かるかも?

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