Forum Discussion

kazeem_yusuf1's avatar
kazeem_yusuf1
Icon for Nimbostratus rankNimbostratus
Nov 02, 2017

IRULE TO REMOVE LOGS FROM FORWARD PROXY IRULE

What irule can be used to remove logs from an irule. The situation is that, the irule applied to a virtual server is filling up the /var/log folder and tmm is rebooting.

example, if { $static::enable_logging_L4_VIP_GPRS_TRANSPARENT } { set logging_handle [HSL::open -proto UDP -pool ${static::log_destination_L4_VIP_GPRS_TRANSPARENT} ]

    i WANT ALL logs removed or tmm not to activate them
  • If you want to disable logging, just read from a variable. You can change the value of this vaiable if you need to do any debugging.

    set enableLogging 0
    
    if { enableLogging == 1 } { 
        set logging_handle [HSL::open -proto UDP -pool ${static::log_destination_L4_VIP_GPRS_TRANSPARENT
        } 
    

    In your instance, you have a static variable 'enable_logging_L4_VIP_GPRS_TRANSPARENT' setting this to 0 should do the same thing