title: Where are google app engine logs of exited (nodejs) application
body: <p>My google app engine nodejs app failed </p>
  
  <p>In Logs viewer:</p>
  
  <pre><code>Start program failed: user application failed with exit code -1 (refer to 
  stdout/stderr logs for more detail): signal: terminated
  </code></pre>
  
  <p>It since has been restarted on next HTTP request.</p>
  
  <p>Where/How do I find stdout/stderr of failed container for post-mortem analysis</p>
  
  <p>Logs:</p>
  
  <p>Quitting on terminated signal:</p>
  
  <pre><code>{
    "textPayload": "[start] 2020/03/04 07:55:39.816933 Quitting on terminated signal",
    "insertId": "5e5f5efb000c7d312b1f44c8",
    "resource": {
      "type": "gae_app",
      "labels": {
        "module_id": "default",
        "zone": "us-east1-2",
        "project_id": "dev-keep-md",
        "version_id": "20200303t212902"
      }
    },
    "timestamp": "2020-03-04T07:55:39.818481Z",
    "labels": {
      "clone_id": "00c61b117ccb894ade35709af1833ec830a1bb062e757cd255b73cdc295876d8ceda3377"
    },
    "logName": "projects/dev-keep-md/logs/%2Fvar%2Flog%2Fgoogle_init.log",
    "receiveTimestamp": "2020-03-04T07:55:39.824498567Z"
  }
  </code></pre>
  
  <p>then </p>
  
  <p>Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated</p>
  
  <pre><code>{
    "textPayload": "[start] 2020/03/04 07:55:40.018902 Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated",
    "insertId": "5e5f5efc00004b70f29f00c9",
    "resource": {
      "type": "gae_app",
      "labels": {
        "version_id": "20200303t212902",
        "module_id": "default",
        "zone": "us-east1-2",
        "project_id": "dev-keep-md"
      }
    },
    "timestamp": "2020-03-04T07:55:40.019312Z",
    "labels": {
      "clone_id": "00c61b117ccb894ade35709af1833ec830a1bb062e757cd255b73cdc295876d8ceda3377"
    },
    "logName": "projects/dev-keep-md/logs/%2Fvar%2Flog%2Fgoogle_init.log",
    "receiveTimestamp": "2020-03-04T07:55:40.158203987Z"
  }
  </code></pre>
  
  <p>then</p>
  
  <p>Container called exit(1).</p>
  
  <pre><code>{
    "textPayload": "Container called exit(1).",
    "insertId": "5e5f5efc000661ed4ffa83fc",
    "resource": {
      "type": "gae_app",
      "labels": {
        "project_id": "dev-keep-md",
        "version_id": "20200303t212902",
        "module_id": "default",
        "zone": "us-east1-2"
      }
    },
    "timestamp": "2020-03-04T07:55:40.418038958Z",
    "severity": "WARNING",
    "labels": {
      "clone_id": "00c61b117ccb894ade35709af1833ec830a1bb062e757cd255b73cdc295876d8ceda3377"
    },
    "logName": "projects/dev-keep-md/logs/varlog%2Fsystem",
    "receiveTimestamp": "2020-03-04T07:55:40.420598849Z"
  }
  </code></pre>