17-Sep-2020 09:43
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?
17-Sep-2020 14:39
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
}