Forum Discussion
Danish202_17040
Nimbostratus
Dec 04, 2014How to capture source IP address(clientIP) on F5 LTM .
Hi All ,
Is there any way to check clients IP(Source addresses) who is accessing F5 virtual server . I need to check clients IP(Source addresses) and confirm to my customer that they accessed o...
Sheigh_65772
Cirrus
Dec 04, 2014Short answer is yes, the how depends on what data you want logged.
If you need only the IP you can do this:
when CLIENT_ACCEPTED {
log local0. "clientIP:[IP::client_addr] accessed"
}
If you also need other data such as resources you can use one of the other events such as HTTP_REQUEST:
when HTTP_REQUEST {
log local0. "clientIP:[IP::client_addr] accessed [HTTP::host][HTTP::uri]"
}
logs will be within your /var/log/ltm
Danish202_17040
Nimbostratus
Dec 04, 2014Thanks a lot ..quite useful reply :)) Could you tell me the risk when I generate logs with your second rule ...Can I fix the resource or memory used for these logs ? or is there any implicit mechanisim to avoid disaster incase logs are too much ...
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
