Layer7 API Management

  • 1.  Request Detail In Audit

    Posted Dec 09, 2016 01:53 PM

    Hello,

     

    I have a handful of REST services and I'm looking to capture more detail about my request and response in an audit log.  I have audit turned on for both and I see them showing up.  However, I'd also like to capture the request method (GET, PUT, POST, DELETE, etc..) and the URI requested (with querystring and params).

     

    Do I have to add a custom audit for this level of detail?  Or should I see it on the "details" tab of the audit record.  I notice that there is a placeholder for "operation", but I'm guessing this is SOAP related?

     

    If it's not available out of the box, does someone have canned audit assertion that they could share that captures these details?

     

    Thanks!


    Alejandro



  • 2.  Re: Request Detail In Audit
    Best Answer

    Broadcom Employee
    Posted Dec 09, 2016 02:00 PM

    Alejandro,

     

    You can use an "Add Audit Detail" assertion in your policy with the following context variables to capture addition information:

    ${request.http.method}

    ${request.http.uri}

     

    For additional transport layer context variables, you can view this documentation page:
    Transport Layer Context Variables - CA API Gateway - 9.1 - CA Technologies Documentation 

     

    And for all available context variables, you can view this documentation page:

    Context Variables - CA API Gateway - 9.1 - CA Technologies Documentation 

     

    Regards,

    Azad