Friday, August 11, 2017

ຕິດຕັ້ງ Goaccess ໃນ Ubuntu

Goaccess ເປັນ Tools ສຳລັບຊ່ວຍວິເຄາະ Log ຂອງເວັບເຊິເວີທີ່ຮອງຮັບທັງ Apache ແລະ Nginx ໂດຍຈະທຳການຈັດກຸ່ມ ແລະ ເຮັດ report ແບບ realtime ໃຫ້ເຮົາເບິ່ງໄດ້ງ່າຍຂຶ້ນດ້ວຍການຈັດກຸ່ມເຊັ່ນ ໄຟລ໌ທີ່ request ຫລາຍທີ່ສຸດ ,static file ທີ່ມີການຮຽກໃຊ້ງານຫລາຍທີ່ສຸດ, Page 404 not found,ຈຳແນກປະເພດຂອງ user agent, ຄຳນວນ Visior ໃຫ້ເຮົາລວມອື່ນໆ ອີກຫລວງຫລາຍ
ມີ Feature:
– General Statistics, bandwidth, etc.
– Time taken to serve the request (useful to track pages that are slowing down your site)
– Top Visitors
– Requested files & static files
– 404 or Not Found
– Hosts, Reverse DNS, IP Location
– Operating Systems
– Browsers and Spiders
– Referring Sites & URLs
– Keyphrases
– Geo Location – Continent/Country/City
– HTTP Status Codes
– Ability to output JSON and CSV
– Different Color Schemes
– Support for large datasets and data persistence
– Support for IPv6
– Output statistics to HTML. See report.
– and more…


ວິທີການຕິດຕັ້ງ Goaccess

apt-get install goaccess

ຖ້າຍັງເປັນເວີຊັນເກົ່າ ໃຫ້ທ່ານເພີ່ມໃນ deb

echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list
					$ wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key add -
					$ apt-get update
					$ apt-get install goaccess

ທົດສອບການໃຊ້ງານ

goaccess -f /var/log/apache2/access.log

Image does not exist: https://www.ruk-com.in.th/wp-content/uploads/2015/02/Screenshot-from-2015-02-22-180138.png

Image does not exist: https://www.ruk-com.in.th/wp-content/uploads/2015/02/Screenshot-from-2015-02-22-180558.png

Image does not exist: https://www.ruk-com.in.th/wp-content/uploads/2015/02/Screenshot-from-2015-02-22-180603.png

Image does not exist: https://www.ruk-com.in.th/wp-content/uploads/2015/02/Screenshot-from-2015-02-22-180611.png

Image does not exist: https://www.ruk-com.in.th/wp-content/uploads/2015/02/Screenshot-from-2015-02-22-180626.png

Image does not exist: https://www.ruk-com.in.th/wp-content/uploads/2015/02/Screenshot-from-2015-02-22-180632.png
ການລາຍງານ ເປັນ html

goaccess access.log -a -o report.html

ຫລື ລາຍງານແບບ Real time

tail -f -n +0 access.log | grep --line-buffered 'Firefox' | goaccess -o out.html --real-time-html -

REAL TIME HTML OUTPUT

goaccess access.log -o /usr/share/nginx/html/site/report.html --real-time-html

Subscribe

  • RSS Atom

ອອນລາຍ: 1 | ມື້ນີ້: 329 | ວານນີ້: 343 | ທິດນີ້: 767 | ເດືອນນີ້: 1546 | ປີນີ້: 12506 | ລວມ: 79609