In Web+, operations logs are generated for ECS instances that are included in a environment. You can view these logs to troubleshoot issues that occur in applications or configuration files. You can search for logs of an ECS instance within a collection of operations logs. When you attempt to collect logs of an ECS instance, Web+ sends a request to the ECS instance. After retrieving the requested logs, Web+ uploads these logs to OSS. Then, you can download the logs in the Web+ console.

Log path on an ECS instance

Logs are stored in the default paths of an ECS instance that resides in your environment. Log paths for each application and Web server are listed as follows:

Log paths for Web+ agents on a Linux ECS instance

  • Log path for the agent daemon process on an ECS instance: /var/log/webplus/webplus-daemon.log
  • Log path for Web+ deployment logs: /var/log/webplus/webplus-deployment.log

Log paths for each application and Web server on a Linux ECS instance

  • Log path for Java applications: /home/admin/app/webplus-app.log
  • Log path for Tomcat applications: /home/admin/tomcat{8}/logs
  • Log path for Nginx logs: /var/log/nginx
  • Log path for Apache logs: /var/log/httpd
Supported environment variables where you can specify log paths
  • $HOME: the user directory
  • $APP_HOME: the root directory of applications.
  • $TOMCAT_HOME: the root directory of Tomcat.

Collect logs

Before requesting logs on Web+, you must select an ECS instance, configure the log path, and then initiate a log request.

  1. Log on to the Web+ console.
  2. On the Overview page, click View All in the upper-right corner of the Last Updated Environments section.
  3. On the Applications and Environments page, click the > icon next to the name of an application to show a list of associated environments.
    Note On the Environments list, the most recently updated four environments are displayed. If the required environment is displayed on the list, you can click the name to open the Environment Details page.
  4. Click the name of a environment to open the Environment Details page.
  5. In the left-side navigation pane, click Logs.
  6. In the upper-right corner of the Logs page, select an instance from which you want to retrieve logs.
  7. When you collect logs for the first time, click Collect Log. Then, click the Edit icon next to Log Path. In the Configure Log Path dialog box, enter a log path. If you want to collect multiple types of logs, click Add and repeat the action to add multiple log paths. After the configuration is complete, click OK.

    After you configure log paths, the specified log paths are displayed in the upper-left corner of the page. You can click edit to modify or delete one or more log paths.

  8. On the Logs page, click Collect Log in the upper-right corner of the page. A record is displayed for a successful log request.
    • When you click see the information in the Actions column of a record, you will be directed to OSS where a log package resides.
    • You can click delete in the Actions column of a record to delete the record.
    • You can click the > icon next to a record ID to show diagnostic information for each instance. Then, you can click download in the Actions column of a instance to download a log file for later analysis. You can also click an instance ID to go to the ECS console to manage the instance.

Collect diagnostic information

In Web+, you must request diagnostic information based on ECS instances.

  1. In the upper-right corner of the Logs page, select an instance from which you want to retrieve diagnostic information.
  2. On the left side of the Logs page, click the drop-down icon next to Collect Log, and select Collect Diagnostic Information from the drop-down list.
  3. A record is displayed for a successful diagnostic information request.
    • When you click see the information in the Actions column of a record, you will be directed to OSS where a package for diagnostic information resides.
    • You can click delete in the Actions column of a record to delete the record.
    • You can click the > icon next to a record ID to show diagnostic information for each instance. Then, you can click download in the Actions column of a instance to download a log file for later analysis. You can also click an instance ID to open the ECS console to manage the instance.