log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
127.0.0.1 - - [23/Nov/2019:11:45:04 +0800] "GET /hadoop-project-dist/hadoop-hdfs/WebHDFS.html HTTP/1.0" 200 125430 "http://localhost:9000/hadoop-hdfs-httpfs/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" "127.0.0.1"
$ /usr/local/Cellar/goaccess/1.3_1/bin/goaccess logs/access.log -o /Users/destiny/dev/nginx/logs/report.html --time-format='%T' --date-format='%d/%b/%Y' --log-format='%h - %^ [%d:%t %^] "%r" %s %b "%R" "%u" "%^"'
Token '23/Nov/2019' doesn't match specifier '%d'
๋ค์์ ์ฌ์ฉํ์ญ์์ค. ๋ก๊ทธ์ ์์ด ๋ ์ง๊ฐ ์๊ณ ์ปดํจํฐ์ ๋ก์ผ์ผ์ด ๋ค๋ฅธ ๊ฒ ๊ฐ์ต๋๋ค.
LANG="en_US.UTF-8" bash -c 'goaccess access.log'
๋๋ก๋ ์ฝ๊ฐ ๋ค๋ฅธ ๋ช
๋ น์ ์ฌ์ฉํด์ผํฉ๋๋ค.
LC_ALL="en_US.UTF-8" bash -c 'goaccess access.log --log-format=COMBINED'
@majkelo ์ง์ ํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ์ด๊ฒ์ ๋ซ์ต๋๋ค. @DestinyWang ์ ํ์ํ ๊ฒฝ์ฐ ๋ค์ ์ด์ด
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋ค์์ ์ฌ์ฉํ์ญ์์ค. ๋ก๊ทธ์ ์์ด ๋ ์ง๊ฐ ์๊ณ ์ปดํจํฐ์ ๋ก์ผ์ผ์ด ๋ค๋ฅธ ๊ฒ ๊ฐ์ต๋๋ค.