Forum Discussion
logging irule and redirection
Quick question about making an irule. Customer currently has an irule doing web page redirects for certain .com's. There one where it appears not to be working. I suspect a DNS issue, but am trying to do some logging to prove it. I'm a noob on writing them and the syntax so hoping someone can assist.
Need something that says: If HTTP_REQUEST from IP 10.10.10.10 then log the clients ip, the destination .com they're going to.
I need to see what address they're trying to go to so I can understand why the irule isn't processing it. I notice that the uri only shows after the / So if it's just a plain .com it doesn't show anything after the slash.
Thanks
2 Replies
- Hi! Do you have a syslog server? /Patrik
- Emad
Cirrostratus
To log IP address and URL being accessed, you can use following irule.
when HTTP_REQUEST { if { [IP::addr [IP::client_addr] equals "10.10.10.10"] } { log local0. "IP [IP::client_addr] requested URL [HTTP::host]" } }
log file would be like: : IP: 10.10.10.10 requested URL www.abc.com
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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