|
1 | 1 | ---
|
2 | 2 | group: cloud-guide
|
3 |
| -title: View logs |
| 3 | +title: View and manage logs |
4 | 4 | functional_areas:
|
5 | 5 | - Cloud
|
6 | 6 | - Configuration
|
7 | 7 | redirect_from:
|
8 | 8 | - /cloud/trouble/environments-logs.html
|
9 | 9 | ---
|
10 |
| -Logs are useful for troubleshooting problems related to {{site.data.var.ece}} [build and deploy hooks][hook]. |
11 | 10 |
|
12 |
| - {:.bs-callout-info} |
13 |
| -Magento-specific logs are in the `<magento-root-dir>/var/` directory. See [Magento Logging][configlog] in the _Configuration guide_. |
| 11 | +Logs for {{site.data.var.ece}} projects are useful for troubleshooting problems related to {{site.data.var.ece}} [build and deploy hooks][hook], cloud services, and the Magento application. |
14 | 12 |
|
15 |
| -{:.bs-callout-tip} |
16 |
| -When you configure your Cloud environment, you can [set up log-based Slack and email notifications][slacklog] for build and deploy actions. |
17 |
| - |
18 |
| -## Viewing logs |
19 |
| - |
20 |
| -There are three ways to view logs: file system, project web UI, `magento-cloud` CLI. |
| 13 | +You can view the logs from the file system, the project web UI, and the `magento-cloud` CLI. |
21 | 14 |
|
22 |
| -- **Log directories**—The `/var/log` system directory contains logs for all environments. The `var/log/` Magento directory contains app-specific logs unique to a particular environment. You must use an SSH connection to access logs in a remote server environment. These directories are not shared between nodes in a cluster. In Pro Production and Staging environments, you must check the logs on each node. |
| 15 | +- **File system**—The `/var/log` system directory contains logs for all environments. The `var/log/` Magento directory contains app-specific logs unique to a particular environment. You must use an SSH connection to access logs in a remote server environment. These directories are not shared between nodes in a cluster. In Pro Production and Staging environments, you must check the logs on each node. |
23 | 16 |
|
24 | 17 | - **Project web UI**—You can see build and post-deploy log information in the environment _messages_ list.
|
25 | 18 |
|
26 | 19 | - **Magento Cloud CLI**—You can view logs using the `magento-cloud log` command.
|
27 | 20 |
|
28 |
| -### Aggregated log data |
| 21 | +## Manage log data |
29 | 22 |
|
30 |
| -On Pro Production and Staging environments, you can review and analyze aggregated data from all {{ site.data.var.ece }} logs using the New Relic Logs service. See [New Relic services][]. |
| 23 | +On Pro Production and Staging environments, use the New Relic Logs application integrated with your project to manage aggregated log data from all logs associated with your {{ site.data.var.ece }} project. |
| 24 | + |
| 25 | +The New Relic Logs application provides a centralized log management dashboard to troubleshoot and monitor {{site.data.var.ece}} Production and Staging environments. The dashboard also provides access to log data for Fastly CDN, Image Optimization, and Web application firewall (WAF) services. See [New Relic services][]. |
31 | 26 |
|
32 | 27 | ### Log command
|
33 | 28 |
|
@@ -78,6 +73,9 @@ Re-deploying environment project-integration-ID
|
78 | 73 | [2019-01-03 19:44:32] NOTICE: Post-deploy is complete.
|
79 | 74 | ```
|
80 | 75 |
|
| 76 | +{:.bs-callout-tip} |
| 77 | +When you configure your Cloud environment, you can set up [log-based Slack and email notifications][slacklog] for build and deploy actions. |
| 78 | + |
81 | 79 | ### Error logs
|
82 | 80 |
|
83 | 81 | Error and warning messages generated during the deployment process are written to both the `var/log/cloud.log` and the `var/log/cloud.error.log` files. The Cloud error log file contains only errors and warnings from the latest deployment. An empty file indicates a successful deployment with no errors.
|
|
0 commit comments