New Log Types for Azure Monitor Integration

1 minute read • By Yutang Lin • June 25, 2020

We have recently added two new log types to our preview of App Service’s Integration with Azure Monitor. The two new log types are:

  1. AppServiceIPSecAuditLogs
  2. AppServicePlatformLogs

To learn more about how to set up your Diagnostic Settings, refer to our previous announcement blog post.

What are these new logs?

AppServiceIPSecAuditLogs (Linux and Windows)

This log will show requests made to an web app if there were any IP access restriction rules created. It will provide information such as the host, client IP, result, and the matching rule. This is available for both Linux and Windows web apps.

As an example, if a user created an IP rule to only allow access from a certain IP range, and there was a request made to the app from an IP outside of the allowed IP range, the log will show the IP of the request and which rule denied the request. Similar results will show for requests made from allowed IP ranges.

At the time of writing, this log type can only be sent to a Storage Account. Future updates will be made to allow this log type to go to Log Analytics.

AppServicePlatformLogs (Linux only)

This log type shows the output of the Docker commands used to manage your container. If you look at your Linux web app’s file system, the LogFiles directory contains two kinds of log files with the following formats:

  • YYYY_MM_DD_RDXXXXXXXXX_default_docker.log: This is the equivalent of AppServiceConsoleLogs on the file system
  • YYYY_MM_DD_RDXXXXXXXX_docker.log: This is the equivalent of AppServicePlatformLogs on the file system

This log will have the contents of the YYYY_MM_DD_RDXXXXXXXX_docker.log. It will contain logs such as starting container for site..., docker run..., output from the docker pull command, etc.

Current State of All Logs Types

The table below shows the latest availability for the log categories on Windows and Linux.

Log Name Windows Linux
AppServiceConsoleLogs TBA ✔️
AppServiceHTTPLogs ✔️ ✔️
AppServiceEnvironmentPlatformLogs ✔️ ✔️
AppServiceAuditLogs ✔️ ✔️
AppServiceFileAuditLogs ✔️ 1 TBA
AppServiceAppLogs TBA ✔️ 2
AppServiceIPSecLogs ✔️ ✔️
AppServicePlatformLogs TBA ✔️

1 Supported only on Premium, PremiumV2 and Isolated App Service Plans

2 Supported on Java SE and Tomcat