Forum Discussion

vmunier_96939's avatar
vmunier_96939
Icon for Nimbostratus rankNimbostratus
Aug 06, 2014

Request logging profile doesn't log Big-Ip generated responses

Hi, I have activated a request logging profile to send Http request and responses log to my syslog server. It's working well for all requests which are redirected to http servers (pools). My problem is that requets which are not redirected to http servers (Big-ip generated responses for instance HTTP::redirect or HTTP::respond) are not logged by the request logging profile. I would like also have log for these requests. Do you have any idea how to do that? I'va also tried to do it with an irules HSL::send: when i call it in the section "when HTTP_response": the problem is the same (there is a note in the documentation :Note: HTTP_RESPONSE is specific to a server response passing through the load balancer, and is not triggered for locally-generated responses (e.g. sent using the HTTP__respond command)) If a call the HSL::send in the section "when HTTP_REQUEST", i can't retrieve some specific value like the http::status or Content-lenght of the Http response... Thank you for your help if you have any idea, Vincent

 

4 Replies

  • i can't retrieve some specific value like the http::status or Content-lenght of the Http response

     

    this may not be an answer you are looking for. anyway, since you are the one who uses HTTP::redirect or HTTP::respond, you know http status and content length, don't you? so, shouldn't it be easier to hard code it in hsl:: command?

     

    • vmunier_96939's avatar
      vmunier_96939
      Icon for Nimbostratus rankNimbostratus
      Yes, you are right. I thought to do this by adding an Hsl command after each redirect in my irules. I will do it, if there are no other solution. Thank you. Vincent
  • i can't retrieve some specific value like the http::status or Content-lenght of the Http response

     

    this may not be an answer you are looking for. anyway, since you are the one who uses HTTP::redirect or HTTP::respond, you know http status and content length, don't you? so, shouldn't it be easier to hard code it in hsl:: command?

     

    • vmunier_96939's avatar
      vmunier_96939
      Icon for Nimbostratus rankNimbostratus
      Yes, you are right. I thought to do this by adding an Hsl command after each redirect in my irules. I will do it, if there are no other solution. Thank you. Vincent