Im trying logging nginx to be apache compliant. i added at the end the http_x_forwarded_for because we get some requests from CDN's and i want to be able to see who is reaching us.
I tried to import the logs i get to some apache log analyzers but mostly all had problems with my log formatting.
what im doing wrong ?
http {
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
# main access log
access_log /var/log/nginx/access.log main;