1

I have a simple requirement. I have a nginx web server and a netscaler proxy. From netscaler, the option Client_IP header is checked, and name of header is HTTP_CLIENT_IP.

I want to access this ip in nginx log. I have specified a custom log format, so i can access this value:

I have tried the following variables in the log format, and they just return in '-'.

$http_client_ip
$http_request_body

Basically, i want to read the entire request header / body that nginx receives from netscaler.

Any help would be appreciated !

2
  • How exactly netscaler sends client's IP to nginx! Commented May 19, 2016 at 3:44
  • @AlexeyTen, it can be configured to send the client's IP as the source IP. If not configured, the NetScaler VIP is passed as the client IP. Commented Jun 11, 2016 at 10:15

1 Answer 1

0

Netscaler inserts a http header with the client ip, if enabled. However You have to configure the http header name on the netscaler.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.