Forum Discussion

Minn_62043's avatar
Minn_62043
Icon for Cirrostratus rankCirrostratus
Jul 15, 2015

How can I log HTTP Request Headers from BIG-IP to pool servers?

I'm trying to log the HTTP request headers sent from BIG-IP to backend servers.

 

HTTP::headers command gets me illegal command errors in HTTP_REQUEST_SEND event. When I wrap it in clientside braces, it gives me the HTTP Request Headers from client to BIG-IP virtual.

 

I also tried clientside { HTTP::header... } command in HTTP_RESPONSE. It still gives me HTTP Response Headers from the backend server to BIG-IP.

 

1 Reply

  • Try this:

    when HTTP_REQUEST_RELEASE {
        foreach x [HTTP::header names] {
            log local0. "$x: [HTTP::header $x]"
        }
    }