Go Access installation uses
1. Installation
$ TAR-XZVF goaccess-1.2.tar.gz
$./configure--enable-utf8--enable-geoip=mmdb
$ make # Make install
2. Importing Files
-q-a
"Note: There will be some problems when importing here. Note The format of the log as a large part of the hint is the reason for the space"
Here I provide some commands to filter the blanks:
Cat 1005158_2017_11_06_232.log | Sed ' s///g ' > 1005158_2017_11_06_232111.log
#把 two spaces are replaced with a space and import the new file
3. "Generate image for access here is Nginx"
Http://192.168.24.128/1005158_2017_11_06html.html
4.nginx Log Format
Log_format main ' $remote _addr-$remote _user [$time _local] "$request" '
' $status $body _bytes_sent ' $http _referer '
' "$http _user_agent" "$http _x_forwarded_for" '
' "$upstream _addr" '
' ups_resp_time: $upstream _response_time '
' request_time: $request _time ';
This article is from the "Innocence" blog, be sure to keep this source http://innocence.blog.51cto.com/4313888/1982250
Go Access installation uses