문서의 이전 판입니다!


Apache HTTPD 로그 분석

[root@localhost ~]# awk '{print $4}' access_log | cut -d: -f1 | uniq -c
6095 [20/Jan/2013
7281 [21/Jan/2013
6517 [22/Jan/2013
5278 [23/Jan/2013
[root@localhost ~]# grep "23/Jan" access_log | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print $2":00"}' | sort -n | uniq -c
200 00:00
417 01:00
244 02:00
242 03:00
344 04:00
402 05:00
522 06:00
456 07:00
490 08:00
438 09:00
430 10:00
357 11:00
284 12:00
391 13:00
163 14:00
[root@localhost ~]# grep "23/Jan" access_log | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print $2":"$3}' | sort -nk1 -nk2 | uniq -c | awk '{ if ($1 > 10) print $0}'
     14 00:08
     15 00:09
     15 00:15
     25 00:22
     12 00:44
     12 00:45
     12 00:52
     22 01:17
     22 01:26
     16 01:34
     11 01:45
     14 01:52
     13 02:23

로그인하면 댓글을 남길 수 있습니다.
  • apache_httpd_로그_분석.1639452319.txt.gz
  • 마지막으로 수정됨: 2021/12/14 03:25
  • 저자 koov