Forum Discussion

JFC_377076's avatar
JFC_377076
Icon for Altocumulus rankAltocumulus
Dec 18, 2018

I-rule APM: logs: how to send rx:tx per tcp session on a webportal

Hi! I use an irule for the HSL logs for web portal access (module APM). All is fine so far.

 

Now, i would like to modify my irule in order to count the bytes rx/tx exchanche for each tcp session.

 

For exemple, a user connect to the webportal. now he chooses a website. I log with the irule the session message but i want to add rx/tx bytes for this session.

 

Is it possible ?

 

1 Reply

  • IP::stats is a very helpful command for measuring bytes in and out. For example:

    when CLIENT_CLOSED
    {
        log local0. "Bytes In:[IP::stats bytes in]"
        log local0. "Bytes Out:[IP::stats bytes out]"
    }
    

    This iRule will log out the bytes in and out for every TCP connection.

    Here is the link to the documentation for IP::stats in case you want to do more research on your own.