question

Victor-8436 avatar image
0 Votes"
Victor-8436 asked ·

Does AppServiceHTTPLogs contain client IP?

Im trying out the new diagnostic AppServiceHTTPLogs feature, to get http logs for a linux docker container. https://azure.github.io/AppService/2019/11/01/App-Service-Integration-with-Azure-Monitor.html

It seems like the CIp field (which I assume should contain the client IP) contains a local IP from azure, in my case 10.0.128.32, instead of the actual client ip. Is this by design or is it possible to get the real client ip somehow?

Without real client ip the http logs becomes much less useful, since its super tricky to connect log rows with each other.

azure-webapps
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm following up with the product team on the definition of CIp @Victor-8436.

0 Votes 0 · ·

Just to follow up Victor, we're actively investigating this issue. I'll post an update as soon as one is available.

0 Votes 0 · ·
JohnPaulGarcia-7339 avatar image
0 Votes"
JohnPaulGarcia-7339 answered ·

yes, the server side logs do. They are in W3C Logging format.

See notes in:

https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs

Good Luck!

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ryanchill avatar image
0 Votes"
ryanchill answered ·

Hi Victor,

I've heard from the product group. The CIp is currently being populated with the load balancer IP. This is why the address is a local IP instead of the HTTP request IP. Nonetheless, they will make the necessary changes to use the request IP address in an upcoming update.

UDPATED: The team has committed the fix and is awaiting deployment. It will take some time before it will be deployed to your region.

Thanks, Ryan

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidArcher avatar image
0 Votes"
DavidArcher answered ·

Check server logs until load balancer is available. I look at the CIp rarely but have found W3C server logs as well.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.