Pivotal/Cloud Foundry/Logs
From r00tedvw.com wiki
(Difference between revisions)
(22 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | [[Pivotal/Cloud_Foundry|Cloud Foundry]] | [[Pivotal/Cloud_Foundry/CLI|Cloud Foundry CLI]] | [[Pivotal/Cloud_Foundry/Apps|Apps]] | [[Pivotal/Cloud_Foundry/Tasks|Tasks]] | [[Pivotal/Cloud_Foundry/Logs|Logs]] | + | [[Pivotal/Cloud_Foundry|Cloud Foundry]] | [[Pivotal/Cloud_Foundry/CLI|Cloud Foundry CLI]] | [[Pivotal/Cloud_Foundry/Apps|Apps]] | [[Pivotal/Cloud_Foundry/Tasks|Tasks]] | [[Pivotal/Cloud_Foundry/Logs|Logs]] | [[Pivotal/Cloud_Foundry/OpsManager|OpsManager]] |
=Overview= | =Overview= | ||
This is an attempt to break down the components within logs for each type of deployment. | This is an attempt to break down the components within logs for each type of deployment. | ||
Line 7: | Line 7: | ||
Each deployment instance will have its own set of logs. | Each deployment instance will have its own set of logs. | ||
==Application Logs== | ==Application Logs== | ||
+ | ===Example Structure=== | ||
+ | [[File:Screen Shot 2018-08-06 at 11.55.10 AM.png|600px]] | ||
+ | ===Contents=== | ||
+ | ====bosh-dns==== | ||
+ | |||
+ | ====consul_agent==== | ||
+ | ====gorouter==== | ||
+ | ====metron_agent==== | ||
+ | ====syslog_forwarder==== | ||
+ | |||
==Deployment/Health Logs== | ==Deployment/Health Logs== | ||
These logs are limited to 1MB in size, after which they will roll to a new log file. | These logs are limited to 1MB in size, after which they will roll to a new log file. | ||
===Example Structure=== | ===Example Structure=== | ||
− | [[File:Screen Shot 2018-08-06 at 10.24.52 AM.png]] | + | [[File:Screen Shot 2018-08-06 at 10.24.52 AM.png|600px]] |
+ | ===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 | ||
+ | <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.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 | ||
+ | </nowiki> | ||
+ | *Metrics and vitals | ||
+ | <nowiki>~$ 2018-08-06_00:30:39.99739 {"deployment":"cf-3dc74d032cbc62c7fd76","job":"router","index":2,"job_state":"running","vitals":{"cpu":{"sys":"0.4","user":"1.1","wait":"11.4"},"disk":{"ephemeral":{"inode_percent":"1","percent":"6"},"system":{"inode_percent":"30","percent":"37"}},"load":["0.14","0.08","0.04"],"mem":{"kb":"255032","percent":"25"},"swap":{"kb":"184","percent":"0"},"uptime":{"secs":2368202}},"node_id":"34d09360-b21f-4328-a2dc-f6a6b4211c42"}</nowiki> |
Latest revision as of 13:41, 16 August 2018
Cloud Foundry | Cloud Foundry CLI | Apps | Tasks | Logs | OpsManager
Contents |
[edit] Overview
This is an attempt to break down the components within logs for each type of deployment.
[edit] 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.
[edit] Application Logs
[edit] Example Structure
[edit] Contents
[edit] bosh-dns
[edit] consul_agent
[edit] gorouter
[edit] metron_agent
[edit] syslog_forwarder
[edit] Deployment/Health Logs
These logs are limited to 1MB in size, after which they will roll to a new log file.
[edit] Example Structure
[edit] 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
- Metrics and vitals
~$ 2018-08-06_00:30:39.99739 {"deployment":"cf-3dc74d032cbc62c7fd76","job":"router","index":2,"job_state":"running","vitals":{"cpu":{"sys":"0.4","user":"1.1","wait":"11.4"},"disk":{"ephemeral":{"inode_percent":"1","percent":"6"},"system":{"inode_percent":"30","percent":"37"}},"load":["0.14","0.08","0.04"],"mem":{"kb":"255032","percent":"25"},"swap":{"kb":"184","percent":"0"},"uptime":{"secs":2368202}},"node_id":"34d09360-b21f-4328-a2dc-f6a6b4211c42"}