Forum Discussion
Moonotech
Mar 22, 2023Nimbostratus
Need help to log the username and client ip address using irules
Hello, Need help on configuring an irule configuration to log the client ip address and also the username for a web application which is going through LTM.Thanks. Regards,
Mar 22, 2023
Hi Moonotech,
For this work you have to determine the variable where the user is located and the create the next irule:
when HTTP_REQUEST {
#Check if the basic auth username is present
set user [HTTP::username]
log local0. "Ip client [IP::client_addr] + the user is: $user"
}
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