Forum Discussion

Nathaneil0227_2's avatar
Nathaneil0227_2
Icon for Nimbostratus rankNimbostratus
Mar 12, 2016

iRule for logging LTM

Hi All,

 

Do you have an iRule to logs all traffic coming to bigIP? Or the log config is enough?

 

Dont worry about the resources utilization.

 

1 Reply

  • If you have AFM licensed and provisioned, you can use firewall rule logging. Alternatively, if all of your traffic is HTTP and/or DNS, you can you HTTP and DNS logging profiles:

    If that's not the case, you could use a simple iRule that logs information for each incoming flow:

    when CLIENT_ACCEPTED {
        set hdl [HSL::open -publisher some_publisher]
        HSL::send $hdl "<134> [IP::client_addr] -> [IP::local_addr]"
    }
    

    If you want to log higher layer information (e.g., port information), the iRule becomes somewhat more complicated.