首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

推荐linux apache日记分析程序 goaccess

2013-11-05 
推荐linux apache日志分析程序 goaccess之前windows上有一个apache访问日志分析的工具,能生成不错的报表页

推荐linux apache日志分析程序 goaccess

之前windows上有一个apache访问日志分析的工具,能生成不错的报表页面,但是是共享软件,

?

在 linux上可以使用 goaccess来代替这个软件,goaccess是开源程序

http://goaccess.prosoftcorp.com/faq#requirements

?

http://stackoverflow.com/questions/12525001/nginx-log-analysis-with-goaccess

?

安装时 最好装上 geoip-dev 包,使用图示如下:

goaccess -f access_log?

日志格式可以使用格式 “ ”来分割

可以自建配置文件,也可以使用 -c选项来建

?

?

默认的是使用命令行,见截图

推荐linux apache日记分析程序 goaccess

也可以使用管道将输出写到文件中,结果如下所示:还是很全的

?

General Dashboard - Overall Analyzed RequestsTotal Requests359Unique Visitors5Referrers0Log Size40.86 KiBFailed Requests0Unique Files79Unique 4044Bandwidth8.17 MiBGeneration Time0Static Files39access_logUnique visitors per day - Including spidersHits having the same IP, date and agent are a unique visit120.00%17/Oct/2013108.06 KiB?240.00%16/Oct/20133.08 MiB?240.00%15/Oct/20134.98 MiB?Expand [+]Requested files (Pages-URL)Top requested files - hits, percent, [bandwidth, time served]215.85%28.62 KiB0.00 us/anchor/install/index.php?route=/account113.06%1.58 KiB0.00 us/92.51%0.0 B0.00 us*82.23%139.85 KiB0.00 us/anchor/install/index.php?route=/start82.23%63.63 KiB0.00 us/sqlman/db_structure.php82.23%9.27 KiB0.00 us/anchor/install/index.php?route=/woops61.67%50.0 B0.00 us/sqlman/index.php51.39%12.32 KiB0.00 us/phpinfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF4251.39%12.09 KiB0.00 us/anchor/admin/users51.39%2.22 KiB0.00 us/anchor/admin/login51.39%278.94 KiB0.00 us/phpinfo.phpExpand [+]Requested static files (e.g., png, js, css, etc)Top requested static files - hits, percent, [bandwidth, time served]9426.18%19.21 KiB0.00 us/favicon.ico82.23%7.34 KiB0.00 us/anchor/install/views/assets/css/install.css82.23%736.0 B0.00 us/anchor/install/views/assets/img/logo.png51.39%3.97 MiB0.00 us/sqlman/js/get_scripts.js.php?scripts[]=jquery/jquery-1.8.3.min.js&scripts[]=ajax.js&scripts[]=keyhandler.js&scripts[]=jquery/jquery-ui-1.9.2.custom.min.js&scripts[]=jquery/jquery.sprintf.js&scripts[]=jquery/jquery.cookie.js&scripts[]=jquery/jquery.mousewheel.js&scripts[]=jquery/jquery.event.drag-2.2.js&scripts[]=jquery/jquery-ui-timepicker-addon.js&scripts[]=jquery/jquery.ba-hashchange-1.3.js&scripts[]=jquery/jquery.debounce-1.0.5.js&scripts[]=jquery/jquery.menuResizer-1.0.js&scripts[]=cross_framing_protection.js&scripts[]=rte.js&scripts[]=functions.js&scripts[]=navigation.js&scripts[]=indexes.js&scripts[]=common.js&scripts[]=codemirror/lib/codemirror.js&scripts[]=codemirror/mode/mysql/mysql.js20.56%913.0 B0.00 us/anchor/anchor/views/assets/css/notifications.css20.56%340.0 B0.00 us/anchor/anchor/views/assets/css/reset.css20.56%1.66 MiB0.00 us/sqlman/js/get_scripts.js.php?scripts[]=jquery/jquery-1.8.3.min.js&scripts[]=ajax.js&scripts[]=keyhandler.js&scripts[]=jquery/jquery-ui-1.9.2.custom.min.js&scripts[]=jquery/jquery.sprintf.js&scripts[]=jquery/jquery.cookie.js&scripts[]=jquery/jquery.mousewheel.js&scripts[]=jquery/jquery.event.drag-2.2.js&scripts[]=jquery/jquery-ui-timepicker-addon.js&scripts[]=jquery/jquery.ba-hashchange-1.3.js&scripts[]=jquery/jquery.debounce-1.0.5.js&scripts[]=jquery/jquery.menuResizer-1.0.js&scripts[]=cross_framing_protection.js&scripts[]=rte.js&scripts[]=functions.js&scripts[]=navigation.js&scripts[]=indexes.js&scripts[]=common.js&scripts[]=db_structure.js&scripts[]=tbl_change.js&scripts[]=codemirror/lib/codemirror.js&scripts[]=codemirror/mode/mysql/mysql.js20.56%802.0 B0.00 us/anchor/anchor/views/assets/css/login.css20.56%36.92 KiB0.00 us/sqlman/favicon.ico20.56%361.0 B0.00 us/anchor/anchor/views/assets/css/small.css20.56%12.44 KiB0.00 us/anchor/anchor/views/assets/css/admin.cssHTTP 404 not found URLsTop 404 not found URLs - hits, percent, [bandwidth, time served]8824.51%19.21 KiB0.00 us/favicon.ico30.84%2.22 KiB0.00 us/anchor/admin/login10.28%201.0 B0.00 us/cms10.28%210.0 B0.00 us/anchor/postsHostsTop hosts - hits, percent, [bandwidth, time served][+]35097.49%8.17 MiB0.00 us127.0.0.1?[+]92.51%0.0 B0.00 us::1?Expand [+]Operating SystemsTop operating systems - hits, percent5100.00%Unknown?Expand [+]BrowsersTop browsers - hits, percent5100.00%Unknown?Expand [+]HTTP status codesTop HTTP status codes - hits, percent20155.99%2xx Success10529.25%4xx Client Error5314.76%3xx Redirection

General Dashboard - Overall Analyzed RequestsTotal Requests359Unique Visitors5Referrers0Log Size40.86 KiBFailed Requests0Unique Files79Unique 4044Bandwidth8.17 MiBGeneration Time0Static Files39access_logUnique visitors per day - Including spidersHits having the same IP, date and agent are a unique visit120.00%17/Oct/2013108.06 KiB?240.00%16/Oct/20133.08 MiB?240.00%15/Oct/20134.98 MiB?[-] CollapseRequested files (Pages-URL)Top requested files - hits, percent, [bandwidth, time served]215.85%28.62 KiB0.00 us/anchor/install/index.php?route=/account113.06%1.58 KiB0.00 us/92.51%0.0 B0.00 us*82.23%139.85 KiB0.00 us/anchor/install/index.php?route=/start82.23%63.63 KiB0.00 us/sqlman/db_structure.php82.23%9.27 KiB0.00 us/anchor/install/index.php?route=/woops61.67%50.0 B0.00 us/sqlman/index.php51.39%12.32 KiB0.00 us/phpinfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF4251.39%12.09 KiB0.00 us/anchor/admin/users51.39%2.22 KiB0.00 us/anchor/admin/login51.39%278.94 KiB0.00 us/phpinfo.php51.39%10.48 KiB0.00 us/phpinfo.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF4251.39%59.18 KiB0.00 us/sqlman/index.php?token=ff0398d1aa0b96cd032bc7722249238f41.11%10.65 KiB0.00 us/anchor/admin/extend41.11%9.54 KiB0.00 us/anchor/admin/categories41.11%10.78 KiB0.00 us/anchor/admin/posts41.11%12.95 KiB0.00 us/sqlman/navigation.php?ajax_request=1&token=ff0398d1aa0b96cd032bc7722249238f30.84%8.59 KiB0.00 us/anchor/admin/pages30.84%18.35 KiB0.00 us/sqlman/js/get_image.js.php?theme=pmahomme30.84%54.61 KiB0.00 us/sqlman/index.php?db=anchor&target=db_structure.php&token=690545b58e8def72a5f604406481916930.84%5.67 KiB0.00 us/anchor/install/index.php?route=/database20.56%5.19 KiB0.00 us/anchor/admin/comments/pending20.56%4.50 KiB0.00 us/anchor/20.56%5.29 KiB0.00 us/anchor/install/index.php20.56%462.0 B0.00 us/anchor20.56%5.19 KiB0.00 us/anchor/admin/comments/approved20.56%2.53 KiB0.00 us/anchor/install/index.php?route=/metadata20.56%10.49 KiB0.00 us/sqlman/index.php?db=anchor&table=&server=1&target=db_structure.php&token=329ea48ddf4232702f8952b225cb80c220.56%5.20 KiB0.00 us/anchor/admin/comments20.56%49.45 KiB0.00 us/sqlman/index.php?db=anchor&target=db_structure.php&token=329ea48ddf4232702f8952b225cb80c210.28%5.67 KiB0.00 us/sqlman/db_structure.php?server=1&db=anchor&token=ff0398d1aa0b96cd032bc7722249238f&ajax_request=true&ajax_page_request=true&menuHashes=488ad705-7d4fa197&_nocache=138182563151322319110.28%1.58 KiB0.00 us/anchor/index.php/admin/login10.28%3.37 KiB0.00 us/sqlman/db_create.php10.28%15.95 KiB0.00 us/sqlman/js/messages.php?lang=zh_CN&db=anchor&token=1de39731eb474028c0027a60cbb8d17f10.28%36.23 KiB0.00 us/sqlman/db_structure.php?db=anchor&token=ff0398d1aa0b96cd032bc7722249238f&ajax_request=true&ajax_page_request=true&menuHashes=488ad705-7d4fa197-b50136b2&_nocache=138182631669878753010.28%36.23 KiB0.00 us/sqlman/db_structure.php?server=1&db=anchor&token=ff0398d1aa0b96cd032bc7722249238f&ajax_request=true&ajax_page_request=true&menuHashes=488ad705-7d4fa197-b50136b2&_nocache=138182646002961311310.28%2.49 KiB0.00 us/sqlman/db_structure.php?server=1&db=anchor&token=ff0398d1aa0b96cd032bc7722249238f&ajax_request=true&ajax_page_request=true&menuHashes=488ad705-7d4fa197-b50136b2&_nocache=138182632752046546810.28%2.27 KiB0.00 us/anchor/admin/extend/variables10.28%2.60 KiB0.00 us/anchor/admin/comments/10.28%1.96 KiB0.00 us/anchor/install/index.php?route=/complete10.28%39.0 B0.00 us/sqlman/version_check.php?&_nocache=138182559465619551510.28%5.24 KiB0.00 us/sqlman/index.php?db=&table=&server=1&target=&token=ff0398d1aa0b96cd032bc7722249238f10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=690545b58e8def72a5f6044064819169&nocache=4143969861ltr10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=690545b58e8def72a5f6044064819169&nocache=2762125721ltr10.28%15.95 KiB0.00 us/sqlman/js/messages.php?lang=zh_CN&db=anchor&token=690545b58e8def72a5f604406481916910.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=ff0398d1aa0b96cd032bc7722249238f&nocache=2762125721ltr10.28%36.23 KiB0.00 us/sqlman/db_structure.php?server=1&db=anchor&token=ff0398d1aa0b96cd032bc7722249238f&ajax_request=true&ajax_page_request=true&menuHashes=488ad705-7d4fa197-b50136b2&_nocache=138182620121178922810.28%1.87 KiB0.00 us/sqlman/10.28%2.65 KiB0.00 us/anchor/admin/extend/variables/add10.28%15.95 KiB0.00 us/sqlman/js/messages.php?lang=zh_CN&db=&token=70c08f49c97b8fbf5f408cbeb4a760c910.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=ff0398d1aa0b96cd032bc7722249238f&nocache=4143946770ltr10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=329ea48ddf4232702f8952b225cb80c2&nocache=4144013760ltr10.28%11.82 KiB0.00 us/sqlman/doc/html/index.html10.28%15.95 KiB0.00 us/sqlman/js/messages.php?lang=zh_CN&db=anchor&token=329ea48ddf4232702f8952b225cb80c210.28%210.0 B0.00 us/anchor/posts10.28%97.0 B0.00 us/sqlman/navigation.php?ajax_request=1&token=ff0398d1aa0b96cd032bc7722249238f&aPath=cm9vdA%3D%3D.YW5jaG9y&vPath=cm9vdA%3D%3D.YW5jaG9y&pos=0&pos2_name=&pos2_value=&searchClause=&searchClause2=&_nocache=138182563173279200310.28%15.95 KiB0.00 us/sqlman/js/messages.php?lang=zh_CN&db=&token=ff0398d1aa0b96cd032bc7722249238f10.28%5.17 KiB0.00 us/sqlman/index.php?db=anchor&table=&server=1&target=db_structure.php&token=690545b58e8def72a5f604406481916910.28%2.17 KiB0.00 us/anchor/admin/extend/plugins10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&lang=zh_CN&token=ff0398d1aa0b96cd032bc7722249238f&nocache=2762125721ltr10.28%39.0 B0.00 us/sqlman/version_check.php?&_nocache=138182104974240121310.28%201.0 B0.00 us/cms10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=329ea48ddf4232702f8952b225cb80c2&nocache=2762125721ltr10.28%40.01 KiB0.00 us/sqlman/server_databases.php?db=&token=ff0398d1aa0b96cd032bc7722249238f&ajax_request=true&ajax_page_request=true&menuHashes=488ad705&_nocache=138182559828383860810.28%8.48 KiB0.00 us/sqlman/navigation.php?ajax_request=1&token=329ea48ddf4232702f8952b225cb80c2&aPath=cm9vdA%3D%3D.YW5jaG9y&vPath=cm9vdA%3D%3D.YW5jaG9y&pos=0&pos2_name=&pos2_value=&searchClause=&searchClause2=&_nocache=138188803972971151810.28%5.17 KiB0.00 us/sqlman/db_structure.php?db=anchor&table=&server=1&target=&token=ff0398d1aa0b96cd032bc7722249238f10.28%2.60 KiB0.00 us/anchor/admin/comments/spam10.28%4.11 KiB0.00 us/anchor/admin/extend/metadata10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=233783834ee0a6de815bd55950c157d3&nocache=2762125721ltr10.28%2.70 KiB0.00 us/anchor/admin/posts/category/uncategorised10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=70c08f49c97b8fbf5f408cbeb4a760c9&nocache=2762125721ltr10.28%0.0 B0.00 us/sqlman/url.php?url=http%3A%2F%2Fwww.phpmyadmin.net%2F&token=329ea48ddf4232702f8952b225cb80c210.28%2.29 KiB0.00 us/anchor/admin/extend/fields10.28%2.49 KiB0.00 us/sqlman/db_structure.php?server=1&db=anchor&token=ff0398d1aa0b96cd032bc7722249238f&ajax_request=true&ajax_page_request=true&menuHashes=488ad705-7d4fa197-b50136b2&_nocache=138182632862583548510.28%15.95 KiB0.00 us/sqlman/js/messages.php?lang=zh_CN&db=anchor&token=233783834ee0a6de815bd55950c157d310.28%3.52 KiB0.00 us/anchor/admin/users/edit/110.28%8.48 KiB0.00 us/sqlman/navigation.php?ajax_request=1&token=690545b58e8def72a5f6044064819169&aPath=cm9vdA%3D%3D.YW5jaG9y&vPath=cm9vdA%3D%3D.YW5jaG9y&pos=0&pos2_name=&pos2_value=&searchClause=&searchClause2=&_nocache=138184414074349630210.28%232.0 B0.00 us/sqlman10.28%86.94 KiB0.00 us/sqlman/phpmyadmin.css.php?server=1&token=1de39731eb474028c0027a60cbb8d17f&nocache=2762125721ltr[-] CollapseRequested static files (e.g., png, js, css, etc)Top requested static files - hits, percent, [bandwidth, time served]9426.18%19.21 KiB0.00 us/favicon.ico82.23%7.34 KiB0.00 us/anchor/install/views/assets/css/install.css82.23%736.0 B0.00 us/anchor/install/views/assets/img/logo.png51.39%3.97 MiB0.00 us/sqlman/js/get_scripts.js.php?scripts[]=jquery/jquery-1.8.3.min.js&scripts[]=ajax.js&scripts[]=keyhandler.js&scripts[]=jquery/jquery-ui-1.9.2.custom.min.js&scripts[]=jquery/jquery.sprintf.js&scripts[]=jquery/jquery.cookie.js&scripts[]=jquery/jquery.mousewheel.js&scripts[]=jquery/jquery.event.drag-2.2.js&scripts[]=jquery/jquery-ui-timepicker-addon.js&scripts[]=jquery/jquery.ba-hashchange-1.3.js&scripts[]=jquery/jquery.debounce-1.0.5.js&scripts[]=jquery/jquery.menuResizer-1.0.js&scripts[]=cross_framing_protection.js&scripts[]=rte.js&scripts[]=functions.js&scripts[]=navigation.js&scripts[]=indexes.js&scripts[]=common.js&scripts[]=codemirror/lib/codemirror.js&scripts[]=codemirror/mode/mysql/mysql.js20.56%913.0 B0.00 us/anchor/anchor/views/assets/css/notifications.css20.56%340.0 B0.00 us/anchor/anchor/views/assets/css/reset.css20.56%1.66 MiB0.00 us/sqlman/js/get_scripts.js.php?scripts[]=jquery/jquery-1.8.3.min.js&scripts[]=ajax.js&scripts[]=keyhandler.js&scripts[]=jquery/jquery-ui-1.9.2.custom.min.js&scripts[]=jquery/jquery.sprintf.js&scripts[]=jquery/jquery.cookie.js&scripts[]=jquery/jquery.mousewheel.js&scripts[]=jquery/jquery.event.drag-2.2.js&scripts[]=jquery/jquery-ui-timepicker-addon.js&scripts[]=jquery/jquery.ba-hashchange-1.3.js&scripts[]=jquery/jquery.debounce-1.0.5.js&scripts[]=jquery/jquery.menuResizer-1.0.js&scripts[]=cross_framing_protection.js&scripts[]=rte.js&scripts[]=functions.js&scripts[]=navigation.js&scripts[]=indexes.js&scripts[]=common.js&scripts[]=db_structure.js&scripts[]=tbl_change.js&scripts[]=codemirror/lib/codemirror.js&scripts[]=codemirror/mode/mysql/mysql.js20.56%802.0 B0.00 us/anchor/anchor/views/assets/css/login.css20.56%36.92 KiB0.00 us/sqlman/favicon.ico20.56%361.0 B0.00 us/anchor/anchor/views/assets/css/small.css20.56%12.44 KiB0.00 us/anchor/anchor/views/assets/css/admin.css20.56%4.44 KiB0.00 us/sqlman/themes/pmahomme/img/logo_right.png20.56%60.45 KiB0.00 us/sqlman/themes/pmahomme/img/sprites.png20.56%43.0 B0.00 us/sqlman/themes/dot.gif20.56%31.52 KiB0.00 us/sqlman/themes/pmahomme/jquery/jquery-ui-1.9.2.custom.css20.56%4.38 KiB0.00 us/anchor/anchor/views/assets/css/forms.css20.56%23.45 KiB0.00 us/anchor/anchor/views/assets/js/zepto.js10.28%34.12 KiB0.00 us/sqlman/js/get_scripts.js.php?scripts[]=db_structure.js&scripts[]=tbl_change.js10.28%8.26 KiB0.00 us/sqlman/doc/html/_static/basic.css10.28%6.68 KiB0.00 us/sqlman/doc/html/_static/doctools.js10.28%4.24 KiB0.00 us/sqlman/js/get_scripts.js.php?scripts[]=server_databases.js10.28%1.77 KiB0.00 us/sqlman/themes/pmahomme/img/ajax_clock_small.gif10.28%3.96 KiB0.00 us/anchor/anchor/views/assets/img/icons.png10.28%866.0 B0.00 us/anchor/anchor/views/assets/img/statuses.png10.28%2.27 KiB0.00 us/sqlman/themes/pmahomme/img/logo_left.png10.28%139.0 B0.00 us/sqlman/themes/pmahomme/img/arrow_ltr.png10.28%1.85 KiB0.00 us/anchor/themes/default/css/reset.css10.28%297.0 B0.00 us/sqlman/themes/pmahomme/img/left_nav_bg.png10.28%623.0 B0.00 us/anchor/themes/default/css/small.css10.28%144.0 B0.00 us/anchor/themes/default/img/categories.png10.28%3.84 KiB0.00 us/sqlman/doc/html/_static/pygments.css10.28%246.95 KiB0.00 us/sqlman/doc/html/_static/jquery.js10.28%290.0 B0.00 us/anchor/themes/default/img/favicon.png10.28%27.42 KiB0.00 us/sqlman/doc/html/_static/underscore.js10.28%368.0 B0.00 us/anchor/anchor/views/assets/img/logo.png10.28%3.95 KiB0.00 us/sqlman/doc/html/_static/default.css10.28%5.01 KiB0.00 us/anchor/themes/default/css/style.css10.28%230.0 B0.00 us/anchor/anchor/views/assets/img/cross.gif10.28%1.10 KiB0.00 us/anchor/themes/default/js/main.jsHTTP 404 not found URLsTop 404 not found URLs - hits, percent, [bandwidth, time served]8824.51%19.21 KiB0.00 us/favicon.ico30.84%2.22 KiB0.00 us/anchor/admin/login10.28%201.0 B0.00 us/cms10.28%210.0 B0.00 us/anchor/postsHostsTop hosts - hits, percent, [bandwidth, time served][-]35097.49%8.17 MiB0.00 us127.0.0.1?-[-]92.51%0.0 B0.00 us::1?-[-] CollapseOperating SystemsTop operating systems - hits, percent5100.00%Unknown?5100.00%|`- Unknown?[-] CollapseBrowsersTop browsers - hits, percent5100.00%Unknown?5100.00%|`- Unknown?[-] CollapseHTTP status codesTop HTTP status codes - hits, percent20155.99%2xx Success20155.99%|`- 200 - OK: The request sent by the client was successful10529.25%4xx Client Error9325.91%|`- 404 - Document Not Found: Requested resource could not be found123.34%|`- 403 - Forbidden: Server is refusing to respond to it5314.76%3xx Redirection267.24%|`- 302 - Moved Temporarily (redirect)246.69%|`- 304 - Not Modified: Resource has not been modified30.84%|`- 301 - Moved Permanently: Resource has permanently moved

Generated by:?GoAccess?0.6.1 on Fri Oct 18 12:16:01 2013

1 楼 eimhee 2013-10-18   能不能用GOACCESS分析出加载时间最长的页面?

热点排行