Forum Discussion

FrontmanFin's avatar
FrontmanFin
Icon for Altostratus rankAltostratus
Apr 12, 2024
Solved

iRule for Logging a HTTP::header

Hello, we have a VS that services multiple FQDNs to one VS and then chooses the pool using an LTM policy that checks the incoming http host from the client and then associates to the pool.   I have...
  • Paulius's avatar
    Apr 13, 2024

    I believe the following is what you're looking for.

    when HTTP_REQUEST priority 500 {
    
        if { [string tolower [HTTP::host]] == "webservera.com" }{
            log local0. "[HTTP:host]"
        }
    
    }