Layer7 API Management

  • 1.  problem with IP finding

    Posted Jul 20, 2015 01:23 PM

    Hi Stephen,

     

         Now i am facing the problem with IP finding. After i did this users started testing the service but dont who are all invoking this Service and from which IP i am getting the request to Layer7. I found the command and used the same. Please find below.


    request.http.header.X-Forwarded-For


    Client Ip= ${request.http.header.X-Forwarded-For}


    I need to print the IP in the logs but the IP is not printing dont know whats wrong in my command. Kindly help me to fix this.



  • 2.  Re: problem with IP finding

    Posted Jul 22, 2015 01:00 PM


  • 3.  Re: problem with IP finding
    Best Answer

    Posted Jul 23, 2015 08:17 AM

    You can audit the value of the XFF by adding an Add Audit Details assertion to your policy that contains the string ${request.http.header.X-Forwarded-For}