In squid.conf, there is a logformat parameter that allow users to customize their own log format. However, in reality that parameter does not affect the format of the logs (access.log cache.log etc) at all. emulate_httpd_log is set to off and the rest of the configation follows the standard except logformat which is set to logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh. This error has been confirmed on both PPC and i686-x86 platform. Reproducible: Always Steps to Reproduce: 1.emerge squid 2.5.9 2.configurate squid.conf so that logformat is combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh 3.logformat does not have any effect on the log files Actual Results: The logs files outputs the following log which does not obey the logformat 1111660241.248 192 192.168.1.100 TCP_MISS/304 244 GET http://forums.gentoo.org/templates/gentoo/formIE.css - DIRECT/140.211.166.170 - Expected Results: The outputs to the logfiles should obey the logformat in squid.conf 192.168.1.100 - - [10/Mar/2005:09:13:56 +0800] "GET http://forums.gentoo.org/templates/gentoo/formIE.css HTTP/1.1" 244 - "http://forums.gentoo.org/templates/gentoo/formIE.css" "Mozilla/5.0 (Windows NT 4.0; U) Opera 7.54 [en]" USE="ssl pam" Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 Thread model: posix gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
did you set logformat and access_log as following? logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh access_log /var/log/squid/access.log combined
My acess log was set to access_log /var/log/squid/access.log squid >_< I should be access_log /var/log/squid/access.log combined. After I have changed the access_log option, the log outputs in the correct format. Sorry about that. This bug has been marked as INVALID.