Forum Discussion
Yugandhar
Nimbostratus
Nov 06, 2018Reg L4 Event Commands in L7 Event
Hi,
Can we use the following L4 commands when a HTTP_REQUEST event is triggered.
When HTTP_REQUEST{
set client [IP::client_addr]:[TCP::client_port]
}
I am looking to log the remote client address when HTTP event is triggered.
Thanks, Yugandhar.
- Samir_Jha_52506
Noctilucent
Yes. You can log the client IP to syslog. Try
log local0. $client
- Yugandhar
Nimbostratus
Thank you f5_rock
- Snl
Cirrostratus
try below irule
when HTTP_REQUEST { log local0. "clientIP:[IP::client_addr] accessed [HTTP::host][HTTP::uri]" }
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