Pivotal/Cloud Foundry/Logs
From r00tedvw.com wiki
(Difference between revisions)
Line 21: | Line 21: | ||
<div class="toccolours mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
* logging Monit heartbeats | * logging Monit heartbeats | ||
− | <div class="mw-collapsible-content"> | + | <div class="mw-collapsible-content"><br> |
<nowiki>2018-08-06_00:30:39.99740 ******************** | <nowiki>2018-08-06_00:30:39.99740 ******************** | ||
2018-08-06_00:31:09.60684 [monitJobSupervisor] 2018/08/06 00:31:09 DEBUG - Getting monit status | 2018-08-06_00:31:09.60684 [monitJobSupervisor] 2018/08/06 00:31:09 DEBUG - Getting monit status |
Revision as of 11:45, 6 August 2018
Cloud Foundry | Cloud Foundry CLI | Apps | Tasks | Logs
Contents |
Overview
This is an attempt to break down the components within logs for each type of deployment.
Router
Router logs have 2 main folders, one containing application logs, the other containing a combination of deployment and health logs.
Each deployment instance will have its own set of logs.
Application Logs
Deployment/Health Logs
These logs are limited to 1MB in size, after which they will roll to a new log file.
Example Structure
Contents
Within the logs you will see references to deployment changes and health monitors. a few things that are shown are:
- reviewing the specifications json and looking for changes
- logging Monit heartbeats
2018-08-06_00:30:39.99740 ******************** 2018-08-06_00:31:09.60684 [monitJobSupervisor] 2018/08/06 00:31:09 DEBUG - Getting monit status 2018-08-06_00:31:09.60687 [http-client] 2018/08/06 00:31:09 DEBUG - status function called 2018-08-06_00:31:09.60688 [http-client] 2018/08/06 00:31:09 DEBUG - Monit request: url='http://127.0.0.1:2822/_status2?format=xml' body='' 2018-08-06_00:31:09.60688 [attemptRetryStrategy] 2018/08/06 00:31:09 DEBUG - Making attempt #0 for *httpclient.RequestRetryable 2018-08-06_00:31:09.60688 [clientRetryable] 2018/08/06 00:31:09 DEBUG - [requestID=bba929a7-d0f5-45e7-7ea0-874c0c1b743b] Requesting (attempt=1): Request{ Method: 'GET', URL: 'http://127.0.0.1:2822/_status2?format=xml' } 2018-08-06_00:31:09.60858 [File System] 2018/08/06 00:31:09 DEBUG - Checking if file exists /var/vcap/monit/stopped 2018-08-06_00:31:09.60860 [File System] 2018/08/06 00:31:09 DEBUG - Stat '/var/vcap/monit/stopped' 2018-08-06_00:31:09.60860 [agent] 2018/08/06 00:31:09 DEBUG - Building heartbeat