2016-12-20 7 views
0

私はgoaccess man pageを読んでいますが、簡単な例がありません。特定のログ形式を.goaccessrcで定義します。

ここ
log_format timed_combined '$remote_addr - $remote_user [$time_local] ' 
    '$ssl_protocol/$ssl_cipher ' 
    '"$request" $status $body_bytes_sent ' 
    '"$http_referer" "$http_user_agent" ' 
    '$request_time $upstream_response_time $pipe'; 

は、例えば、ログエントリです:私は、次の設定でカスタマイズnginxの持っている

66.249.76.120 - - [20/Dec/2016:19:04:03 +0100] 
TLSv1.2/ECDHE-RSA-AES128-GCM-SHA256 "GET/HTTP/1.1" 200 27232 
"-" "Mozilla/5.0 (compatible; Googlebot/2.1; 
+http://www.google.com/bot.html)" 0.026 0.026 . 

をどのように私はその形式を読み取ること.goaccessrcを設定する必要がありますか?

答えて

1

あなたの設定ファイルに以下を追加することができますか~/.goaccessrc

log-format %h %^[%d:%t %^] %^"%r" %s %b "%R" "%u" %T %^ 
date-format %d/%b/%Y 
time-format %H:%M:%S 
関連する問題