Forum Discussion
Dan_Deming_1935
Nimbostratus
Aug 18, 2006How do I insert LB's IP with an irule?
We have 2 F5 Big IP units set up in front of 3 web servers running Apache 1.3. We're using the Type: Standard, Protocol: TCP and HTTP Profile: HTTP settings.
In our Apache logs, we want to include...
Dan_Deming_1935
Nimbostratus
Aug 21, 2006unRuleY,
Thanks for your reply. All I really care about is being able to log which Load Balancer a request went through, so I'm fine with using 'LB1' / 'LB2' instead of the actual IP addresses. I made 2 text files with these names on each of my Big IPS. Now how do I reference the contents of these files?
The admin panel rejects the following code as invalid. I'm obviously not setting the class correctly and I'm not sure if this will even pull in the contents of the file.
class whichlb {
"/config/whichlb.txt"
}
when HTTP_REQUEST {
HTTP::header insert "Remote-Addr" [IP::remote_addr]
HTTP::header insert "Local-Addr" [IP::local_addr]
HTTP::header insert "LB" $::whichlb
}
Please let me know what I should do to get at the contents of this file. Thanks again for your help.
-Dan
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
