Skip to main content
Container logs provide records of activity on the internal components of Package Security Manager—activity like incoming requests, errors, and configuration changes. Checking these logs can help you troubleshoot specific problems with your instance. Logs also give you a clearer picture of how your containers interact with each other. Below is a brief description of each container in the application, and what information you can gain from reviewing the logs for that container.

Viewing containers

Follow these steps to view the containers in your Package Security Manager instance:
  1. Open a terminal and connect to your instance of Package Security Manager.
  2. Run the following command:

Viewing container logs

Follow these steps to view the logs for a specific container:
  1. Open a terminal and connect to your instance of Package Security Manager.
  2. Run the following command:
    For example:
    You can also view container logs in real-time by adding the --follow option to your command:
    Viewing logs in real time allows you to monitor ongoing processes and catch issues as they occur. This is particularly useful during deployments or troubleshooting sessions.

Analyzing container logs

Container logs hold various types of information that can help you understand the behavior and performance of your containers, enabling you troubleshoot and maintain your Package Security Manager instance effectively. Container logs typically capture the following important details:

Exporting logs

Save the logs for a specific container by running the following command:
Alternatively, you can collect and save logs for all the containers at once by running the following commands:

Integrating logs with monitoring tools

Use monitoring tools like Grafana and Prometheus to visualize container performance trends and set up alerts for issues in your Package Security Manager instance. Grafana helps you spot anomalies, while Prometheus allows you to create alerts based on error rates. For more information on accessing your dashboards and monitoring the health of your Package Security Manager instance, see Grafana monitoring. To learn more about Prometheus and metrics collection, see System metrics with Prometheus. To configure your logs to be sent directly to AWS CloudWatch, see the official AWS CloudWatch Logs documentation for detailed instructions.