Forum Discussion
GavinW_29074
Nimbostratus
Feb 02, 2012Streamline error and response handling...
Hi there,
Currently we've got several rules set-up to do various functions.
A couple of examples are:
* Maintenance page handling
* Application error handling
* SSL Cli...
GavinW_29074
Nimbostratus
Feb 02, 2012Ok, after some further googling, I think I may have answered my own question...
This thread was quite useful in highlighting the options - http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1172260/showtab/groupforums/Default.aspx
So I've set-up a couple of test rules:-
SetVariable -
when CLIENT_ACCEPTED {
set vari "[IP::client_addr]:[TCP::client_port]"
log local0.info "Variable has been set..."
} LogVariable -
when HTTP_REQUEST {
log local0.info "HTTP Request from $vari"
} Assigning these to a VIP and attempting to connect logs the following:
Feb 2 11:58:36 tmm info tmm[9144]: Rule /Common/SetVariable : Variable has been set...
Feb 2 11:58:36 tmm info tmm[9144]: Rule /Common/LogVariable : HTTP Request from 192.168.150.24:42438
Is this a practical approach? Or am I better off using some of the more advanced session functionality?
Cheers
Gavin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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