Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

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
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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.

0
Comments on this Answer
Comment made 3 months ago by JFC 77

Thx. works perfect !

0