---
sidebar_position: 32
title: View the logs
description: View the logs of a container.
keywords: [podman desktop, podman, containers, logs]
tags: [viewing-container-logs, container-logs]
---

# Viewing the container logs

You can view the logs of a container to identify and resolve any issues with the container or examine the record of triggered events.

#### Prerequisites

Make sure you have:

- [A running Podman machine](/docs/podman/creating-a-podman-machine).
- [Started a containerized application](/blog/2024/10/05/kubernetes-blog#building-a-containerized-application).

#### Procedure

1. Go to the **Containers** component page.
1. Click the name of the container, such as `python-app`.
   ![python app container](img/python-app-container.png)
1. Select the **Logs** tab to analyze the logs of the container.
1. Optional: Type any keyword in the box to search for it in the logs.
   ![analyze the logs](img/analyzing-the-logs.png)
1. Click the **close** icon on the right side of the page.

   :::note

   Alternatively, click the **overflow menu** icon and then select the **Open Logs** option to view the container logs.
   ![open the logs](img/opening-logs.png)

   :::
