cancel
Showing results for 
Search instead for 
Did you mean: 

Log HTTP Responses Generated by APM Policies

AceDawg1
Nimbostratus
Nimbostratus

Good day all,

 

Is there a way to capture/log HTTP Response codes generated by APM through an iRule? The HTTP_RESPONSE event only captures response codes returned from the origin server. If an APM policy sends an HTTP RESPONSE CODE 302 (redirect), how can that information be logged? What iRule event provides access to HTTP events created when APM responds to HTTP REQUESTS?

1 REPLY 1

AceDawg1
Nimbostratus
Nimbostratus

According to https://clouddocs.f5.com/api/irules/ACCESS__restrict_irule_events.html, HTTP Response codes generated by APM are turned off by default. Add the following code to an iRule to enable access to HTTP Response codes from APM:

 

when CLIENT_ACCEPTED {

ACCESS::restrict_irule_events disable

}