公司要在分析access_log日志,但怎么样也见不到?后面的url的内容 查了很多资料,最后发现.squid的access_log缺省是不记url里”?”后面的内容的 原来在squid.conf里有个叫”strip_query_terms“的参数,缺省是打开的(ON) 设成off即可 squid文档里是这么写的:
| Tag Name | strip_qury_terms |
| Usage | strip_query_terms on|off |
Description Squid by default does not log query parameters. These parameters are however forwarded to the server verbatim. If we want to enable logging of query parameters, the strip_query_terms directive can be used . By default, Squid strips query terms from requested URLs before logging. This protects your user’s privacy
| Default | strip_query_terms on |
赫赫,后悔当初没有仔细看squid的squid.conf.default了吧?
签名
---
仔细再翻一把,肯定还有意外的惊喜
coolzsb Says @ 08-02-27 15:10