Forum Discussion
Robert_47833
Jun 01, 2011Altostratus
wanna record user_agent from specific client ip
Hi
I have a requirement
it seems impossible
we want to record user_agent from some specific client ip
when CLIENT_ACCEPTED {
if
{ [IP::addr [IP::client_addr] ...
hooleylist
Jun 01, 2011Cirrostratus
You should use the full iRule. If you removed the else clause, you'd get a runtime error for every other client IP when the log_ua variable doesn't exist. The iRule as I wrote it will do what you're looking for and just log the User-Agent header for that specific client IP address.
Aaron
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