ログ設定

 logformat xlogformat %{%Y-%m-%dT%H:%M:%S}tl %6tr %>a %>A %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
 access_log daemon:/var/log/squid/access.log xlogformat
  • logformatでフォーマットを任意の名前で指定する。ここではxlogfmat
  • 次にaccess_logでログファイルのパスと上のフォーマット名を指定する
  • >Aは接続元IPアドレスのFQDNだけどDNSルックアップが発生して遅くなるのかも?
  • tlでタイムスタンプの書式を指定する。{%Y-%m-%dT%H:%M:%S}の中の書式は次を参照する https://linuxjm.osdn.jp/html/LDP_man-pages/man3/strftime.3.html

参考

logformat

http://www.squid-cache.org/Doc/config/logformat/

access_log

http://www.squid-cache.org/Doc/config/access_log/


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2020-11-23 (月) 10:19:23