trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Carlsson <johan.carip...@gmail.com>
Subject Re: Measuring cache hit ratio
Date Mon, 12 Aug 2013 12:49:51 GMT
Hi!

You can use logs_xml.config for that.

example

<LogFilter>
        <Name = "filter_TCP_HIT"/>
        <Condition = "crc MATCH TCP_HIT"/>
        <Action = "ACCEPT"/>
</LogFilter>
<LogFormat>
        <Name = "format_TCP_HIT_mydomain.com/>
        <Format = "mydomain.com,TCP_HIT,%<LAST(cqtq)>,%<COUNT(*)>,%<SUM(psql)>"/>
        <Interval = "60"/>
</LogFormat>
<LogObject>
        <Filename = "mydomain.com_TCP_HIT"/>
        <Format = "format_TCP_HIT_mydomain.com"/>
        <ServerHosts = "mydomain.com"/>
        <Filters = "filter_TCP_HIT"/>
</LogObject>

More info
https://trafficserver.apache.org/docs/trunk/admin/configuration-files/logs_xml.config.en.html

Regards
Johan 

12 aug 2013 kl. 14:38 skrev Noam Schiff <noamschiff@gmail.com>:

> Hi,
> 
> Is there a way to measure the cache hit ratio in the traffic server?
> 
> Thanks,
> -Noam


Mime
View raw message