If ESB directly receiving a request message from the source, you can use following properties to extract source IP related info,
<log level="custom">
<property xmlns:ns="http://org.apache. synapse/xsd" name="REMOTE_ADDR" expression="$axis2:REMOTE_ ADDR"></property>
<property xmlns:ns="http://org.apache. synapse/xsd" name="REMOTE_HOST" expression="$axis2:REMOTE_
HOST"></property>
</log>
If you have a proxy server or load balancer in the middle, You can use following property to extract IP address of the request source,
<log level="custom">
<property xmlns:ns="http://org.apache. synapse/xsd" name="X-Forwarded-For" expression="$trp:X-Forwarded-For""></property>
</log>
<log level="custom">
<property xmlns:ns="http://org.apache.
<property xmlns:ns="http://org.apache.
</log>
If you have a proxy server or load balancer in the middle, You can use following property to extract IP address of the request source,
<log level="custom">
<property xmlns:ns="http://org.apache.
</log>
Comments
Post a Comment