You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by "Velusamy, Gandhimathi" <gv...@Central.UH.EDU> on 2016/06/16 22:50:06 UTC

How to control the tcp_log.log file size

Hi,
I am experimenting with Traffic server as a Reverse proxy and using RUBiS work bench(http://rubis.ow2.org/) on the client side. I am facing the problem of the log files growing very fast and server starts hanging due to space unavailability. I am seeing server hangup from error.log file when the no of concurrent requests are more.

I set proxy.config.log.logging_enabled to 1.
set proxy.config.log.rolling_interval_sec to 3600.
set proxy.config.log.sampling_frequency to 3

I tried to reduce logging but still tcp_log file is growing very fast and  it is getting rolled out every 3 minutes as the size of 10 Mb is exhausted. 

Is there anyway can I reduce logging of tcp_log.log?

root@px206:/usr/local/var/log/trafficserver# ls -l
total 21024
-rw-r--r-- 1 nobody nogroup      295 Jun 16 17:40 diags.log
-rw-r--r-- 1 nobody nogroup       68 Jun 16 17:40 error.log
-rw-r--r-- 1 nobody nogroup   275423 Jun 16 17:45 tcp_log.log
-rw-r--r-- 1 nobody nogroup 10640606 Jun 16 17:42 tcp_log.log_px206.20160616.17h40m17s-20160616.17h42m17s.old
-rw-r--r-- 1 nobody nogroup 10589671 Jun 16 17:45 tcp_log.log_px206.20160616.17h42m16s-20160616.17h45m22s.old
-rw-r--r-- 1 nobody nogroup     6520 Jun 16 17:45 traffic.out





Thanks
Gandhimathi


Re: How to control the tcp_log.log file size

Posted by Leif Hedstrom <zw...@apache.org>.
> On Jun 16, 2016, at 4:50 PM, Velusamy, Gandhimathi <gv...@Central.UH.EDU> wrote:
> 
> Hi,
> I am experimenting with Traffic server as a Reverse proxy and using RUBiS work bench(http://rubis.ow2.org/) on the client side. I am facing the problem of the log files growing very fast and server starts hanging due to space unavailability. I am seeing server hangup from error.log file when the no of concurrent requests are more.
> 
> I set proxy.config.log.logging_enabled to 1.
> set proxy.config.log.rolling_interval_sec to 3600.
> set proxy.config.log.sampling_frequency to 3
> 
> I tried to reduce logging but still tcp_log file is growing very fast and  it is getting rolled out every 3 minutes as the size of 10 Mb is exhausted. 
> 
> Is there anyway can I reduce logging of tcp_log.log?

What do you have configured that’s producing the tcp_log ? A plugin ?

— Leif

> 
> root@px206:/usr/local/var/log/trafficserver# ls -l
> total 21024
> -rw-r--r-- 1 nobody nogroup      295 Jun 16 17:40 diags.log
> -rw-r--r-- 1 nobody nogroup       68 Jun 16 17:40 error.log
> -rw-r--r-- 1 nobody nogroup   275423 Jun 16 17:45 tcp_log.log
> -rw-r--r-- 1 nobody nogroup 10640606 Jun 16 17:42 tcp_log.log_px206.20160616.17h40m17s-20160616.17h42m17s.old
> -rw-r--r-- 1 nobody nogroup 10589671 Jun 16 17:45 tcp_log.log_px206.20160616.17h42m16s-20160616.17h45m22s.old
> -rw-r--r-- 1 nobody nogroup     6520 Jun 16 17:45 traffic.out
> 
> 
> 
> 
> 
> Thanks
> Gandhimathi
>