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:
-
In the Provider Control Panel, find the location of the endpoint of the application instance:
- Go to Services > Applications.
- Select the APS Instances tab. Then, select the application instance that you need.
- Select the General tab.
- 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/
. - Resolve the hostname from the URL to its IP address. Then, write down the IP address.
- Write down the IIS application name from the URL.
-
On your Microsoft 365 application endpoint host, find the location of
sitelog
andapilog
:- Open Internet Information Services (IIS) Manager.
- Find the IIS site of the endpoint by using the IP address that you obtained previously.
- Find the IIS application of the endpoint by using the IIS application name that you obtained previously.
- In the navigation tree, select the IIS application. Then, click Explore in the Actions pane. The directory of the IIS application opens.
- Go to the
App_Data
directory. This directory containssitelog
andApilog\apilog
that you need.
If you need to turn off the compression of sitelog
for an endpoint, you can do this following these steps:
- 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). - 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. - Uncomment the line
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
by removing<!--
and-->
at the beginning and at the end of the line. - Save the changes.
- Open Command Prompt, and execute
iisreset
.