bdavis
Feb 25, 2010Nimbostratus
Issue with Basic irule.
Hello all,
I was hoping someone can possibly shed some light on this issue I am having. I am a network engineer trying to be a proggrammer so bare with me. I was trying write this irule below to beable to pull a few indentifing credentials out of the http header and log them with the uri they are requesting. The problem I am seeing is the irule will log the x-forwarded-for as well as the host and uri. But it cannot seem to find the SM_USER or the SM_SESSIONSERVERID. When I perform a Tcpdump to Wireshark I can clearly see that there present. Am I just overlooking something very simple? Thank You
when HTTP_REQUEST {
set LogString "Client [HTTP::header SM_USER]:[HTTP::header SM_SERVERSESSIONID]:[HTTP::header X-Forwarded-For] -> [HTTP::host][HTTP::uri]"
log local3. "$LogString (request)"
}