Forum Discussion
Shruti_Malik_84
Nimbostratus
Apr 10, 2007Need an i-Rule for logging purposes
Can we make an i-Rule for logging the following details?
The following properties can be logged and their format can be configured in IIS.
-Date
-Time
-Client IP Address
...
tungsten_112959
Nimbostratus
Apr 25, 2007when CLIENT_ACCEPTED {
set vip [IP::local_addr]:[TCP::local_port]
}
when SERVER_CONNECTED {
set client "[IP::client_addr]:[TCP::client_port]"
set node "[IP::server_addr]:[TCP::server_port]"
}
when CLIENT_CLOSED {
log connection info
log local0.info "Client $client -> VIP: $vip -> Node: $node"
}
===================================================================
when I create this iRule, seems like my web had stop responding
viewing the ltm logs show as below
=============================================================================
Apr 25 13:23:16 tmm tmm[725]: 01220001:3: TCL error: Rule http_logger - can't read "nodePort": no such variable
while executing "log local0.info "Client: $client -> VIP:$vip$url -> Node: $node:$nodePort with response $nodeResp""
=============================================================================
So what do we need to replace the "nodePort" variable with? Thanks
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
