Forum Discussion
Dan_Deming_1935
Aug 21, 2006Nimbostratus
unRuleY,
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