Changes between Version 3 and Version 4 of ApacheLog解析


Ignore:
Timestamp:
Nov 28, 2016, 12:01:53 PM (8 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ApacheLog解析

    v3 v4  
    142142     23 /favicon.ico
    143143}}}
     144
     145== 1週間分の総接続端末台数 ==
     146
     147{{{
     148cd /home/$1/
     149sort 20161122/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     150sort 20161122/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     151sort 20161123/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     152sort 20161121/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     153sort 20161124/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     154sort 20161125/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     155sort 20161126/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     156sort 20161127/logMain/access_log.1 | awk '{ print $1 }' | uniq | wc -l
     157}}}
     158
     159== 1週間分の秒間最大接続台数 ==
     160
     161{{{
     162cd /home/$1/
     163awk '{ print $4 }' 20161121/logMain/access_log.1 | sort | uniq -c | sort -r -n | head
     164awk '{ print $4 }' 20161122/logMain/access_log.1 | sort | uniq -c | sort -r -n | head
     165awk '{ print $4 }' 20161123/logMain/access_log.1 | sort | uniq -c | sort -r -n | head
     166awk '{ print $4 }' 20161124/logMain/access_log.1 | sort | uniq -c | sort -r -n | head
     167awk '{ print $4 }' 20161125/logMain/access_log.1 | sort | uniq -c | sort -r -n | head
     168awk '{ print $4 }' 20161126/logMain/access_log.1 | sort | uniq -c | sort -r -n | head
     169awk '{ print $4 }' 20161127/logMain/access_log.1 | sort | uniq -c | sort -r -n | head
     170}}}
     171