Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 762 Bytes

deployments-viewing-logs.adoc

File metadata and controls

26 lines (22 loc) · 762 Bytes

Viewing deployment logs

Procedure
  1. To stream the logs of the latest revision for a given DeploymentConfig:

    $ oc logs -f dc/<name>

    If the latest revision is running or failed, the command returns the logs of the process that is responsible for deploying your pods. If it is successful, it returns the logs from a Pod of your application.

  2. You can also view logs from older failed deployment processes, if and only if these processes (old ReplicationControllers and their deployer Pods) exist and have not been pruned or deleted manually:

    $ oc logs --version=1 dc/<name>