์๋ ์ฌ๋ฌ๋ถ
Goaccess์์ Easy Engine ๊ธฐ๋ณธ NginX ๋ก๊ทธ๋ฅผ ํฌ๋งทํ ์ ์๊ธฐ ๋๋ฌธ์ ์ฌ๊ธฐ ์ฑ ์์ ๋จธ๋ฆฌ๋ฅผ ๋ฐ๊ณ ์์ต๋๋ค. 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 ๊ธฐ๋ณธ ๋ก๊ทธ์ธ์ ๋น๋์ ์ถ๊ฐํ ์ ์๋ ์ต์ ์ด ์์ต๋๊น?
๋ค์๊ณผ ๊ฐ์ด ํด์ผ ํฉ๋๋ค.
%h %^[%d:%t %^] %v "%r" %s %b "%R" "%u"
%d/%b/%Y
%T
์๋ฒฝํ๊ฒ ์๋ํฉ๋๋ค.
์ด๊ฒ์ด NginX์ ๋ชจ๋ Easy Engine ์ค์ ์ ๋ํ ๊ธฐ๋ณธ๊ฐ์ด๋ฏ๋ก ๊ธฐ๋ณธ ๋ก๊น ์ต์ ์์ ์ด๋ฅผ ๊ณ ์ ํ ์ ์์ต๋๊น?
๋น์ ์ ๋ด ํ๋ฃจ๋ฅผ ๊ตฌํ์ต๋๋ค!