精品专区-精品自拍9-精品自拍三级乱伦-精品自拍视频-精品自拍视频曝光-精品自拍小视频

網(wǎng)站建設(shè)資訊

NEWS

網(wǎng)站建設(shè)資訊

goaccess如何安裝和使用

這篇文章主要為大家展示了“goaccess如何安裝和使用”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“goaccess如何安裝和使用”這篇文章吧。

翔安網(wǎng)站制作公司哪家好,找成都創(chuàng)新互聯(lián)公司!從網(wǎng)頁(yè)設(shè)計(jì)、網(wǎng)站建設(shè)、微信開(kāi)發(fā)、APP開(kāi)發(fā)、響應(yīng)式網(wǎng)站建設(shè)等網(wǎng)站項(xiàng)目制作,到程序開(kāi)發(fā),運(yùn)營(yíng)維護(hù)。成都創(chuàng)新互聯(lián)公司成立于2013年到現(xiàn)在10年的時(shí)間,我們擁有了豐富的建站經(jīng)驗(yàn)和運(yùn)維經(jīng)驗(yàn),來(lái)保證我們的工作的順利進(jìn)行。專注于網(wǎng)站建設(shè)就選成都創(chuàng)新互聯(lián)公司

一、Debian下安裝goaccess
cat /etc/debian_version 
6.0.10
apt-cache search goaccess
goaccess - log analyzer and interactive viewer for the Apache Webserver
apt-get -y install goaccess

二、Centos下安裝goaccess
cat /etc/redhat-release 
CentOS release 6.6 (Final)
yum list|grep goaccess
goaccess.x86_64                            0.8.5-1.el6                   epel
yum -y install goaccess
沒(méi)有epel源的話需要安裝
rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

三、參數(shù)說(shuō)明

-b Enable total bandwidth consumption. To achieve faster parsing, 
do not enable this flag.  This has been disabled by default.(流量統(tǒng)計(jì))
-f input-file path to input log filename(日志文件名)
-s Enable/report HTTP status codes. To avoid overhead while parsing, 
this has been disabled by default.(HTTP響應(yīng)代碼統(tǒng)計(jì))
-e Exclude an IP from being count it under the HOST module. 
This has been disabled by default.(指定IP地址統(tǒng)計(jì),默認(rèn)禁用)指定還是排除?
-c Prompt log/date configuration window.(配置)
-a Enable a List of User-Agents by host.(用戶代理統(tǒng)計(jì))

四、功能說(shuō)明
1、General Statistics(統(tǒng)計(jì)概況,流量消耗)
Number  of valid requests, number of invalid requests, time to analyze the data, 
unique visitors, unique requested files, unique static files (css, ico, jpg,
js, swf, gif, png) unique HTTP referrers (URLs), unique 404s (not found), 
size of the parsed log file, bandwidth consumption.
2、Unique visitors(訪客排名)
HTTP requests having the same IP, same date and same agent will be considered a 
unique visit. This includes crawlers.
3、Requested files(動(dòng)態(tài)Web請(qǐng)求)
Hit totals are based on total requests. This module will display hits, percent, 
bandwidth [time served], [protocol] and [method].
4、Requested static files(靜態(tài)web請(qǐng)求,如圖片、樣式表、腳本等)
Hit totals are based on total requests. Includes files such as: jpg, css, swf, js, 
gif, png etc. 
This module will display hits,percent,bandwidth,[time served],[protocol] and [method].
5、404 or Not Found(404 錯(cuò)誤)
Hit totals are based on total requests. This module will display hits, percent, 
bandwidth, [time served], [protocol] and [method].
6、Operating Systems(操作系統(tǒng))
Hit totals are based on unique visitors. This module will display hits and percent. 
The expanded module shows all available versions of the parent node.
7、Browsers(瀏覽器和搜索引擎)
Hit totals are based on unique visitors. This module will display hits and percent. 
The expanded module shows all available versions of the parent node.
8、HTTP Status Codes(HTTP 響應(yīng)代碼)
The values of the numeric status code to HTTP requests. 
Hit totals are based on total requests. This module will display hits and percent.
9、Keyphrases(鍵盤(pán)布局)
This  module  will report keyphrases used on Google search, Google cache, 
and Google translate. Hit totals are based on total requests. This module will dis-
play hits and percent.

  • -f – 日志文件名

  • -b – 開(kāi)啟流量統(tǒng)計(jì),如果希望加快分析速度不建議使用該參數(shù)

  • -s – 開(kāi)啟HTTP響應(yīng)代碼統(tǒng)計(jì)

  • -a – 開(kāi)啟用戶代理統(tǒng)計(jì)

  • -e – 開(kāi)啟指定IP地址統(tǒng)計(jì),默認(rèn)禁用

  • -p -指定goacces用戶配置文件路徑

  • F1 幫助菜單

  • F5 刷新

  • q 退出當(dāng)前口窗、菜單、或是當(dāng)前查看的選項(xiàng)

  • o 打開(kāi)當(dāng)前的選項(xiàng)、菜單

  • c 改變窗口配色(目前只有兩種 默認(rèn)和綠色)

  • SHIFT + TAB 從當(dāng)前選定模塊向后切換

  • RIGHT 打開(kāi)當(dāng)前選中模塊,查看詳細(xì)信息

  • s 通過(guò)日期排序,只會(huì)在訪問(wèn)請(qǐng)求模塊起作用

  • S 通過(guò)點(diǎn)擊次數(shù)排序,只會(huì)在訪問(wèn)請(qǐng)求模塊起作用

  • / 查看詳細(xì)信息的窗口進(jìn)行搜索

  • n 通過(guò)/進(jìn)行查找后,查找下個(gè)匹配的內(nèi)容的位置,如果沒(méi)有則在窗口底部顯示“search hit BOTTOM”

  • t 在查看詳細(xì)信息窗口,移動(dòng)指針到最頂部

  • b 在查看詳細(xì)信息窗口,移動(dòng)指針到最底部

apache - what is? - how in goaccess

%v - vhost - %^ ignore it

%h - host - %h

%l - hyphen - %^ ignore it

%u - user - %^ ignore it

%t - timestamp - [%d:t% %^] ignore the zone from apache log

%r - request - %r

%s - status - %s

%b - size - %b

%{referer}i - request header - %R

%{UAgent}i - user agent - %u

%d date field matching the date_format variable.

%h host (the client IP address, either IPv4 or IPv6) IT網(wǎng),http://www.it.net.cn

%r The request line from the client. This requires specific delimiters around the request (as single quotes, double quotes, or anything else) to be parsable. If not, we
have to use a combination of special format specifiers as %m %U %H.

%m The request method.

%U The URL path requested (including any query string).

%H The request protocol.

%s The status code that the server sends back to the client. IT網(wǎng),http://www.it.net.cn

%b The size of the object returned to the client.

%R The “Referrer” HTTP request header.

%u The user-agent HTTP request header. Linux學(xué)習(xí),http:// linux.it.net.cn

%D The time taken to serve the request, in microseconds.

%T The time taken to serve the request, in seconds or milliseconds. Note: %D will take priority over %T if both are used.

%^ Ignore this field. Lin

date_format  See http://linux.die.net/man/3/strftime
開(kāi)始日志分析并導(dǎo)出為html文件:

1

[root@Rootop ~]# goaccess -f /home/wwwlogs/www.rootop.org.log --log-format='%h %^[%d:%^] "%r" %s %b "%R" "%u"' --date-format='%d/%b/%Y' -d -a > test.html

或者
[root@Rootop ~]# goaccess -f /home/wwwlogs/www.rootop.org.log -d -a -p ~/.goaccessrc > test2.html

使用bash/sed/awk手動(dòng)查找Nginx日志

#按日期查找時(shí)間段 sed -n "/14//Jul//2015:00:00:00/,/15//Jul//2015:15:00:00/"p access.log > time_access.log
#查找504錯(cuò)誤的頁(yè)面和數(shù)量 awk '($9 ~ /504/)' time_access.log | awk '{print $7}' | sort | uniq -c | sort -rn > 504.log
#查找訪問(wèn)最多的20個(gè)IP及訪問(wèn)次數(shù) awk '{print $1}' time_access.log | sort | uniq -c | sort -n -k 1 -r | head -n 20 > top.log

以上是“goaccess如何安裝和使用”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!


分享標(biāo)題:goaccess如何安裝和使用
網(wǎng)站路徑:http://m.jcarcd.cn/article/gpejgj.html
主站蜘蛛池模板: 国产强伦姧在线观看 | 成人影片免费观看 | 97午夜理论 | 岛国精品在线观看 | 99精品| 欧美日韩色色 | 成人向日葵app污 | 国产国语对 | 99热观看| 老司机深夜福 | 欧美日韩免费观看 | 欧美日韩国产在线 | 国产乱婬| 日本免费看黄 | 国产在线ts | 三级采花三级在线 | 91国内| 国语精品91自产 | 国产欧美另类 | 日韩福利在线观看 | 国产绿奴09-01 | 日本不卡精品 | 3d动漫h| 国外精品 | 日本高清一区 | 日韩亚洲欧美综合 | 国产手机视频自拍 | 伦理一国产A级 | 区三区夜夜嗨 | 精品综合 | 国产自产在线观 | 中文字幕久热精品 | 日韩精品动漫一区 | 精品三级国产在线看 | 嗨嗨影院伦理电影 | 精品视频一区二区 | 人成在线免费视频 | 欧美日韩第三页 | 精品一卡二卡三卡四 | 欧美日韩国产成 | 国产精品都市激情 |