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

Filter by:
  • Solution
  • Technology

iRule obtain bandwidth use per Virtual Hosts in Virtual Servers

Hello everybody... let me explain what I need... I would like to implement some kind of iRule with the following pourpose: I have defined a Virtual Server (IP:port) with diferent HTTP/s services (Virtual Hosts), i.e: VS: xx.yy.zz.5 port 80. Different URIs (name1, name2, name3) under the same VirtualServer.

Depending on the URI, the Apache servers reply with the correct web content. This works fine, but I would like to Obtain/account the amount of traffic for each URI-VirtuaHost during a time.

AFAIK, F5 only get statistics of the VirtualServer, but not of the VirtualHost defined under the same VirtualServer.

I don't have a clear idea of how to proceed with the iRULE and any help will be welcomed. I don't know exaclty the resources that the iRule should have, maybe I should use tables for maintain the list of URI-VirtualHosts and the "TCP::bandwidth" or "IP::stats" resources to obtain the traffic/bandwidth utilization. I don't have also a clear idea about how to show the information obtained, ISTATs?, STATS?, log local0?... all I need is some place to store this information. It would be nice if it could be stored and sent via syslog. In any case, I don't know if this is possible.

As you can see, I'm a mess... I have seen so many iRules examples but no one covers exactly what I need:

Thanks in advance and any information will be welcomed. B.R.

- Antonio.
Rate this Question

Answers to this Question


You could take a look at this custom reporting solution. Set up the statistics profile and reset when the uri changes to a different application then send out the data using High Speed Logging

Comments on this Answer
Comment made 4 weeks ago by Alucien 11

First of all, thank you very much for your fast response! I'm already see this solution that you provide but I'm not capable to see how can I mantain the statistic of bandwidth used by an URI... maybe (clearly) I don't have learn yet how to change the example that you provide. In any case, thanks again but I will need to study the use of the HSL and statistics profile.