asiosio_165682
Aug 08, 2014Nimbostratus
iRule to log HTTP Request
Hello,
I have two F5 Big-IP:
- 1 * BIG-IP 11.4.1 Build 647.0 Hotfix HF4
- 1 * BIG-IP 10.2.4 Build 817.0 Hotfix HF7
I want to setup logging for HTTP traffic.
On the first F5 (11.4), no problem. I have created a request logging profile with this template:
$DATE_NCSA client=$CLIENT_IP:$CLIENT_PORT request=$HTTP_REQUEST virtual-server=$VIRTUAL_NAME($VIRTUAL_IP:$VIRTUAL_PORT) member=$SERVER_IP:$SERVER_PORT
On the second F5 (10.2), it is more complicated since the "Request logging profile" does not exist.. And i can't upgrade the device. I decided to create an iRule which produce a log with the same format (HTTP request).. But i don't know how to do.. Especially to generate "$DATE_NCSA" through the irule.
Any help would be very appreciated ! 🙂
Thanks
PS: please excuse my english 🐵