Application Logs
ServiceStage supports setting of application log policies. You can view related logs on the AOM page.
Setting Log Collection
During or after application component deployment, you can go to the application component details page, choose Upgrade to set Log Collection.
- When deploying an application component, choose Advanced Settings > O&M Monitoring on the Configure Component page.
If no configuration is performed, the system collects standard application output logs by default.
- Click Add Log Policy on the Log Collection tab page and set parameters, as shown in the following table.
Table 1 Parameters for adding log policies Parameter
Description
Storage Type
The parameter value can be HostPath or Mounting Path.
Host Path
This parameter is mandatory when Storage Type is set to Host Path.
Enter the log storage path on the host.
Docker Mounting
- Click Add Container Mounting.
- Set Mounting Path: Enter the application path to which the data volume is mounted. NOTICE:
- Do not mount a data volume to a system directory such as / or /var/run. This action may cause an application error to occur. You are advised to mount the data volume to an empty directory. If the directory is not empty, ensure that the directory does not contain any files that affect application startup; otherwise, the files will be replaced, making it impossible for the application to be properly started. As a result, the application creation will fail.
- When the data volume is mounted to a high-risk directory, you are advised to use a low-permission account to start the container; otherwise, high-risk files on the host may be damaged.
- Set Extended Host Path.
- None: No extended path is configured.
- PodUID: ID of a Pod.
- PodName: name of a Pod.
- PodUID/ContainerName: ID/container name of a Pod.
- PodName/ContainerName: a Pod name/container name.
- Set Aging Period.
- Hourly: Log files are scanned every hour. If a log file exceeds 20 MB, it will be dumped to a historical file in the directory where the log file is saved and then will be cleared.
- Daily: Log files are scanned every day. If a log file exceeds 20 MB, it will be dumped to a historical file in the directory where the log file is saved and then will be cleared.
- Weekly: Log files are scanned every week. If a log file exceeds 20 MB, it will be dumped to a historical file in the directory where the log file is saved and then will be cleared.
- Click OK.
Querying Application Logs
- Log in to AOM and choose Log.

- Select the cluster where the application component locates, enter an application component name to search for the application component, and click View next to mesher.log to view the application, as shown in the following figure.

Last Article: Custom Metric Monitoring
Next Article: Application Performance Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.