Goaccess: NginXカスタムのデフォルトのアクセスログの問題

作成日 2017年03月27日  ·  3コメント  ·  ソース: allinurl/goaccess

こんにちはフォークス

Easy EngineのデフォルトのNginXログをgoaccessでフォーマットすることができないため、ここで机に頭をぶつけています。 nginx.conf:

        # Log format Settings
        log_format rt_cache '$remote_addr $upstream_response_time $upstream_cache_status [$time_local] '
        '$http_host "$request" $status $body_bytes_sent '
        '"$http_referer" "$http_user_agent"';

実際の出力:

66.249.79.119 - - [27/Mar/2017:07:51:28 -0400] www.argonon.com "GET /news/page/3/ HTTP/1.1" 301 178 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
10.1.6.251 0.618 - [27/Mar/2017:07:51:49 -0400] argonon.com "GET /2012/04/30/leopard-films-ground-breaking-new-documentary-series-starts-today-monday-30th-april-11am-bbc1/ HTTP/1.1" 200 7978 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

標準のログリーダーはどれも機能せず、私の最後の試みは次のとおりです。
時間形式%H:%M:%S
日付形式%d /%b /%Y
ログ形式%h-%^ [%d:%t%^] "%r"%s%b "%R" "%u"%T "%^"

エラーが発生します:

Token 'ET' doesn't match specifier '%s'
Token 'ET' doesn't match specifier '%s'
Token 'ET' doesn't match specifier '%s'
Token '[27/Mar/2017' doesn't match specifier '%d'
Token 'ET' doesn't match specifier '%s'
Token 'ET' doesn't match specifier '%s'
Token '[27/Mar/2017' doesn't match specifier '%d'
Token 'ET' doesn't match specifier '%s'
Token '[27/Mar/2017' doesn't match specifier '%d'
Token '[27/Mar/2017' doesn't match specifier '%d'

Format Errors - Verify your log/date/time format

助けてください、かなりお願いします、上に桜。

EasyEngine NginXのデフォルトのログインをビルドに追加するオプションはありますか?

lodattime format question

全てのコメント3件

これはそれを行う必要があります:

%h %^[%d:%t %^] %v "%r" %s %b "%R" "%u"
%d/%b/%Y
%T

完璧に動作します。

これはNginXのEasyEngineセットアップのデフォルトであるため、デフォルトのログオプションでこれに取り組むことは可能でしょうか?

あなたは私の日を救った!

このページは役に立ちましたか?
0 / 5 - 0 評価

関連する問題

tbarbette picture tbarbette  ·  3コメント

narayan1599 picture narayan1599  ·  3コメント

konungrl picture konungrl  ·  3コメント

vivekkrish picture vivekkrish  ·  3コメント

Tassleh0ff picture Tassleh0ff  ·  4コメント