{"id":5,"date":"2010-11-23T14:59:00","date_gmt":"2010-11-23T14:59:00","guid":{"rendered":"http:\/\/devopsny.com\/blog\/?p=5"},"modified":"2013-03-04T19:30:27","modified_gmt":"2013-03-04T19:30:27","slug":"inserting-client-ip-into-iis-logs","status":"publish","type":"post","link":"https:\/\/devopsny.com\/blog\/2010\/11\/23\/inserting-client-ip-into-iis-logs\/","title":{"rendered":"Inserting client-ip into IIS Logs"},"content":{"rendered":"<p>Since the IIS instances are behind load balancers, the load balancer IP is inserted as the client-ip. To work around this, an IIS module is needed that replaces the client-ip value with the correct value. This is acomplished with two changes. First, the ACE must inject a speacial header value. In this case the header value is X-Client-IP. Second, the arr_helper module has to be installed and configured to replace the client-ip value with the correct value.<\/p>\n<p>The module can be found here:<\/p>\n<p><a href=\"http:\/\/blogs.iis.net\/anilr\/archive\/2009\/03\/03\/client-ip-not-logged-on-content-server-when-using-arr.aspx\">http:\/\/blogs.iis.net\/anilr\/archive\/2009\/03\/03\/client-ip-not-logged-on-content-server-when-using-arr.aspx<\/a><\/p>\n<p>The module is installed in:<\/p>\n<p>%PROGRAMFILES%\\IIS\\ARR Helper\\\u200b<\/p>\n<p>The configuration is located in:<\/p>\n<p>%windir%\\system32\\inetsrv\\config\\schema\\arr_helper_schema.xml<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the IIS instances are behind load balancers, the load balancer IP is inserted as the client-ip. To work around this, an IIS module is needed that replaces the client-ip value with the correct value. This is acomplished with two changes. First, the ACE must inject a speacial header value. In this case the header [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2,3],"tags":[4,5],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-iis7","category-load-balancing","tag-iis7-2","tag-loadbalancing"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fcrv-5","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":1,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":6,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions\/6"}],"wp:attachment":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}