我正在迁移我的旧Squid(Debian 7.8中的2.7到CentOS 6.6中的3.1)
我需要将日志发送到位于另一台机器上的系统日志服务器
我将下面的configuration添加到新的服务器
logformat S2combined %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %[un %Sh/%<A %mt "%{Referer}>h" "%{User-Agent}>h" access_log /var/log/squid/access.log S2combined access_log udp://192.168.4.63:514 S2combined
这个configuration在旧的服务器上工作正常,但在新的服务器上,squid不会启动。
我用-d 10选项运行了鱿鱼,它在stdout中显示了我:
FATAL: Cannot open 'udp://192.168.4.63:514' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf.
有没有人有任何线索? 我一直在检查鱿鱼cachingconfiguration参考鱿鱼3.1,这个configuration似乎是确定的
提前致谢
UDP日志似乎可以从Squid 3.2开始。
比较: http : //www.squid-cache.org/Versions/v3/3.1/cfgman/access_log.html http://www.squid-cache.org/Versions/v3/3.2/cfgman/access_log.html