Forum Discussion
- Mui_64918CirrusFound the answer.,
There is documents to describe X-FORWARDED-FOR extraction in IIS which is pretty well documented.
For Apache and IBM HTTP its pretty straight forward as replacing the %h in the log directive in httpd.conf to %{X-Forwarded-For}i and will take care of the logs.
But I couldn't find any for Sun One Webserver/ Iplanet Web servers. Have anyone tried it with Sun One/Iplanet?
Was there a challenge with any other web servers or versions?
!Murali
Magnus.conf iPlanet Default Flex Log Format:
Init fn="flex-init" access="$accesslog" format.access=%Ses->client.ip% - %Req-
>vars.auth-user% [%SYSDATE%] '%Req->reqpb.clf-request%' %Req->srvhdrs.clf-
status% %Req->srvhdrs.content-length%
Need to update it to:
fn="flex-init" access="$accesslog" format.access=%Req->headers.x-forwarded-
for% - %Req->vars.auth-user% [%SYSDATE%] '%Req->reqpb.clf-request%' %Req-
>srvhdrs.clf-status% %Req->srvhdrs.content-length%