Forum Discussion
Requests with 307 responses not logged (missing) in ASM events
307 redirect is a redirect by browser itself usually due to hsts.
So if 307 is not be sent by the server that's why you will never be able to log it.
- Emil_TrMay 21, 2025
Altocumulus
If t is not sent by server, where are the HTTP 307 logs in ltm log coming from?
- Injeyan_KostasMay 21, 2025
Nacreous
Good point, in which irule event do you log them?
- Emil_TrMay 22, 2025
Altocumulus
HTTP::RESPONSE of course
when HTTP_REQUEST {
set is_pelecard1 0
set path1var [HTTP::path]
set host1var [HTTP::host]
set cip1var [IP::client_addr]
if {($path1var contains "pelecard" )} {
set is_pelecard1 1
set uri1var [HTTP::uri]
set vs1var [IP::local_addr]
log local0. "client ip=$cip1var >> vs: $vs1var $host1var$uri1var [IP::client_addr] [IP::remote_addr] [IP::local_addr] "
}
}when HTTP_RESPONSE {
if {(($is_pelecard1 == 1 ) or ($cip1var == "99.99.99.8"))} {
log local0. "HTTP Status = [HTTP::status] [IP::client_addr] [IP::remote_addr] [IP::local_addr] [IP::server_addr]"
}
}LTM log:
May 21 07:41:19 f5_ASM01 info tmm2[10293]: Rule /Common/_Troubleshoot-iRule <HTTP_RESPONSE>: HTTP Status = 307 99.99.99.8 10.20.3.36 51.51.51.50 10.20.3.36
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
