You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Esmq <es...@163.com> on 2013/08/22 10:52:50 UTC
problem about logs_xml.config (how to debug Logfilter )
hi,all
i have defined two LogFormat/LogFilter for two different LogBojects, and found that the LogFilter doesn't work (never match), can somebody help me how to debug that ?
any seggestion to set a corrent value for proxy.config.diags.debug.tags ?
and following is my logs_xml.config
<LogFormat>
<Name = "format1"/>
<Format = "%<cqtq> ..."/>
</LogFormat>
<LogFormat>
<Name = "format2"/>
<Format = "%<cqtq> ...\"%<{Referer}cqh>\""/>
</LogFormat>
<LogFilter>
<Name = "accept_test.com"/>
<Condition = "cquuh CONTAIN test.com"/>
<Action = "ACCEPT"/>
</LogFilter>
<LogFilter>
<Name = "reject_test.com"/>
<Condition = "cquuh CONTAIN test.com"/>
<Action = "REJECT"/>
</LogFilter>
<LogObject>
<Format = "format1"/>
<Filename = "access_format1"/>
<Mode = "ascii"/>
<Filters = "reject_test.com"/>
</LogObject>
<LogObject>
<Format = "format2"/>
<Filename = "access_format2"/>
<Mode = "ascii"/>
<Filters = "accept_test.com"/>
</LogObject>