> ## Documentation Index
> Fetch the complete documentation index at: https://docs.porter.run/llms.txt
> Use this file to discover all available pages before exploring further.

# porter logs (deprecated)

> View application logs from the Porter Enterprise CLI. This command is deprecated — use porter app logs to stream and filter logs in current versions.

#### NOTE: this command has been deprecated - please use [porter app logs](/standard/cli/command-reference/porter-app#porter-app-logs) instead

##### Prerequisites

* You've logged in to the Porter CLI after running [porter auth login](/enterprise/cli/command-reference/porter-auth)
* You're connected to the correct project by running [porter config set-project](/enterprise/cli/command-reference/porter-config)
* You're connected to the correct cluster by running [porter config set-cluster](/enterprise/cli/command-reference/porter-config)

`porter logs` logs the output from a given application. If an application has multiple instances, you will be prompted to select the instance. If you would like to tail logs from an application, run the command with the `--follow` flag:

```
porter logs [APP_NAME] --follow

```

To locate an application in a different namespace, run with the `--namespace` flag:

```
porter logs [APP_NAME] --namespace custom-ns

```
