Help Center/ ServiceStage/ FAQs/ Application O&M/ Why Can't I View ServiceStage Logs?
Updated on 2024-08-13 GMT+08:00

Why Can't I View ServiceStage Logs?

Possible reasons why logs cannot be viewed on ServiceStage are:

  • ICAgent was not installed on the host you are trying to view logs on.
  • User service logs were output to a non-standard location.

Solution

  • If ICAgent is not installed on your host:

    ServiceStage log viewing is provided by the Application Operations Management (AOM) service and requires ICAgent because it is the AOM collector running on each host to collect metrics, logs, and application performance data in real time.

    For details, see Installing an ICAgent.

  • If logs are output to a non-standard location:

    Since log policies are user-defined, the service logs of the user program are not output to the standard output location. Perform the following steps:

    • VM-based deployment

      Check whether the configured log policy writes the user application service logs to the default VM log directory specified by ServiceStage: /var/log/application/${Component name}-${Environment name}-${Random character string}/${Version number}/${Instance ID}/start_app.log.

      Query the service code and adjust the log policy.

    • Container-based deployment

      Check the configured log policy to determine where service logs are output to. For details, see Configuring a Log Policy of an Application.