Viewing and Configuring Endpoint Logs

Each Microsoft 365 application endpoint belongs to a Microsoft 365 application instance and has log files called sitelog and apilog. sitelog contains general log records of the endpoint and is rotated daily; after the rotation, it is compressed to reduce disk space consumption (a rotated log file is never removed). apilog contains log records of calls to the Partner Center and Graph APIs, including the payload; apilog is rotated daily (a rotated file that is older than 15 days is removed).

You can view sitelog and apilog of the endpoint of an application instance by following these steps:

  1. In the Provider Control Panel, find the location of the endpoint of the application instance:

    1. Go to Services > Applications.
    2. Select the APS Instances tab. Then, select the application instance that you need.
    3. Select the General tab.
    4. Using the Application API end-point URI setting, obtain the URL of the endpoint. The URL has the following structure: https://<hostname>/<IIS_application_name>/aps/.
    5. Resolve the hostname from the URL to its IP address. Then, write down the IP address.
    6. Write down the IIS application name from the URL.
  2. On your Microsoft 365 application endpoint host, find the location of sitelog and apilog:

    1. Open Internet Information Services (IIS) Manager.
    2. Find the IIS site of the endpoint by using the IP address that you obtained previously.
    3. Find the IIS application of the endpoint by using the IIS application name that you obtained previously.
    4. In the navigation tree, select the IIS application. Then, click Explore in the Actions pane. The directory of the IIS application opens.
    5. Go to the App_Data directory. This directory contains sitelog and Apilog\apilog that you need.

If you need to turn off the compression of sitelog for an endpoint, you can do this following these steps:

  1. On your Microsoft 365 application endpoint host, open the web.config file of the IIS application of the endpoint in a text editor (see the instructions above to learn how to obtain the location of the endpoint and its IIS application).
  2. Comment the line <appender name="RollingLogFileAppender" type="Parallels.Office365.Gateway.Log.ZipRollingFileAppender"> by adding <!-- and --> at the beginning and at the end of the line.
  3. Uncomment the line <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> by removing <!-- and --> at the beginning and at the end of the line.
  4. Save the changes.
  5. Open Command Prompt, and execute iisreset.
CloudBlue, an Ingram Micro business, uses cookies to improve the usability of our site. By continuing to use this site and/or logging in you are accepting the use of these cookies. For more information, visit our Privacy Policy.