proxy
Q.
squidのaccessログを参照すると、時間がGMTで表示されてしまう。日本時間で表示したい。
A.
squidではaccess.logとして2つの形式をサポートしています。1つはsquid本来のログ形式をサポートしGMT時間で表示します。もうひとつは"emulate_httpd_log "オプションを使うことでhttpd互換(CERN web daemon互換:common log file format(CLF)と言います)のフォーマットへ変換しローカルタイムで表示する方式です。後者へ変更すれば、日本時刻で表示します。
squid.conf
# TAG: emulate_httpd_log on|off # The Cache can emulate the log file format which many 'httpd' # programs use. To disable/enable this emulation, set # emulate_httpd_log to 'off' or 'on'. The default # is to use the native log format since it includes useful # information that Squid-specific log analysers use. # #emulate_httpd_log off emulate_httpd_log on