Skip to content

Commit dfcc7c7

Browse files
authored
Merge branch 'master' into small-changes
2 parents fc5cf66 + 56a1dfa commit dfcc7c7

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

guides/v2.2/cloud/project/log-locations.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ You can [set up log-based Slack and email notifications][slacklog] when configur
1818

1919
## Viewing logs
2020

21-
There are three ways to view logs: file system, project web UI, or magento-cloud CLI.
21+
There are three ways to view logs: file system, project web UI, or the `magento-cloud` CLI.
2222

23-
- **Log directories**—The `var/log` directory contains logs for all environments. You must use an SSH connection to access the `var/log` directory in the remote server environment.
24-
- **Project web UI**—You can see build and post-deploy log information in the environment messages list.
23+
- **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.
24+
- **Project web UI**—You can see build and post-deploy log information in the environment _messages_ list.
2525
- **Magento Cloud CLI**—You can view logs using the `magento-cloud log` command.
2626

2727
### Log command
@@ -45,7 +45,6 @@ Enter a number to choose a log:
4545
[6] post-deploy
4646
>
4747
```
48-
{:.no-copy}
4948

5049
By default, the command displays the log from the Integration environment. For the Pro Staging logs, you need to specify the log location using the project ID.
5150

@@ -73,23 +72,22 @@ Re-deploying environment project-integration-ID
7372
[2019-01-03 19:44:32] INFO: Warming up failed: http://integration-id-project.us.magentosite.cloud/
7473
[2019-01-03 19:44:32] NOTICE: Post-deploy is complete.
7574
```
76-
{: .no-copy}
7775

7876
The following logs have a common location for all Cloud projects:
7977

8078
- **Build log**: `var/log/cloud.log`
8179
- **Debug log**: `var/log/debug.log`
8280
- **Exception log**: `var/log/exception.log`
83-
- **Support report log**: `var/log/support_report.log`
81+
- **Reports**: `var/reports/`
8482

85-
Logs from the deploy hook are unique for each environment. The deploy log is in the following directories:
83+
Though the `cloud.log` file contains feedback from each stage of the deployment process, logs from the deploy hook are unique to each environment. The environment-specific deploy log is in the following directories:
8684

87-
- **Starter and Pro Integration**: `var/log/deploy.log`
88-
- **Pro Staging**: `var/log/platform/<project_id>_stg/deploy.log`
89-
- **Pro Production**: `var/log/platform/<project_id>/deploy.log`
85+
- **Starter and Pro Integration**: `/var/log/deploy.log`
86+
- **Pro Staging**: `/var/log/platform/<project_id>_stg/deploy.log`
87+
- **Pro Production**: `/var/log/platform/<project_id>/deploy.log`
9088

9189
The value of `<project_id>` depends on the project ID and whether the environment is Staging or Production. For example, with a project ID of `yw1unoukjcawe`, the Staging environment user is `yw1unoukjcawe_stg` and the Production environment user is `yw1unoukjcawe`.
92-
Using that example, the deploy log is: `var/log/platform/yw1unoukjcawe_stg/deploy.log`
90+
Using that example, the deploy log is: `/var/log/platform/yw1unoukjcawe_stg/deploy.log`
9391

9492
The log for each deployment concatenates to the specific `deploy.log` file. The following example prints the deploy log in the terminal:
9593

@@ -119,28 +117,31 @@ magento-cloud log platform/<project_id>_stg/deploy
119117

120118
## Application logs
121119

122-
Similar to deploy logs, application logs are unique for each environment. The following table lists application log locations on each environment:
120+
Similar to deploy logs, application logs are unique for each environment. For Pro Staging and Production environments, the Deploy, Post-deploy, and Cron logs are available only on the first node in the cluster.
121+
122+
The following table lists application log locations on each environment:
123123

124124
Log file | Starter and Pro Integration | Pro Staging | Pro Production
125125
------------------- | --------------------------- | ------------------------------------------------- | -------------------------------------------
126-
**Deploy log** | `var/log/deploy.log` | `var/log/platform/<project_id>_stg/deploy.log` | `/var/log/platform/<project_id>/deploy.log`
127-
**Cron log** | `var/log/cron.log` | `var/log/platform/<project_id>_stg/cron.log` | `var/log/platform/<project_id>/cron.log`
128-
**Nginx access log**| `var/log/access.log` | `var/log/platform/<project_id>_stg/access.log` | `/var/log/platform/<project_id>/access.log`
129-
**Nginx error log** | `var/log/error.log` | `var/log/platform/<project_id>_stg/error.log` | `/var/log/platform/<project_id>/error.log`
130-
**PHP access log** | `var/log/php.access.log` | `var/log/platform/<project_id>_stg/php.access.log` | `/var/log/platform/<project_id>/php.access.log`
131-
**PHP FPM log** | `var/log/app.log` | `var/log/platform/<project_id>_stg/php5-fpm.log` | `var/log/platform/<project_id>/php5-fpm.log`
126+
**Deploy log** | `/var/log/deploy.log` | First node only:<br>`/var/log/platform/<project_id>_stg/deploy.log` | First node only:<br>`/var/log/platform/<project_id>/deploy.log`
127+
**Post-deploy log** | `/var/log/post_deploy.log` | First node only:<br>`/var/log/platform/<project_id>_stg/post_deploy.log` | First node only:<br>`/var/log/platform/<project_id>/post_deploy.log`
128+
**Cron log** | `/var/log/cron.log` | First node only:<br>`/var/log/platform/<project_id>_stg/cron.log` | First node only:<br>`/var/log/platform/<project_id>/cron.log`
129+
**Nginx access log**| `/var/log/access.log` | `/var/log/platform/<project_id>_stg/access.log` | `/var/log/platform/<project_id>/access.log`
130+
**Nginx error log** | `/var/log/error.log` | `/var/log/platform/<project_id>_stg/error.log` | `/var/log/platform/<project_id>/error.log`
131+
**PHP access log** | `/var/log/php.access.log` | `/var/log/platform/<project_id>_stg/php.access.log` | `/var/log/platform/<project_id>/php.access.log`
132+
**PHP FPM log** | `/var/log/app.log` | `/var/log/platform/<project_id>_stg/php5-fpm.log` | `/var/log/platform/<project_id>/php5-fpm.log`
132133

133134
## Service logs
134135

135136
Because each service runs in a separate container, the service logs are not available in the Integration environment. {{site.data.var.ece}} provides access to the web server container in the Integration environment only. The following service log locations are for the Pro Staging and Production environments:
136137

137-
- **Redis log**: `var/log/platform/<project_id>_stg/redis-server-<project_id>_stg.log`
138-
- **Elasticseach log**: `var/log/elasticsearch/elasticsearch.log`
139-
- **Mail log**: `var/log/mail.log`
140-
- **MySQL error log**: `var/log/mysql/mysql-error.log`
141-
- **MySQL slow log**: `var/log/mysql/mysql-slow.log`
142-
- **RabbitMQ log**: `var/log/rabbitmq/[email protected]`
138+
- **Redis log**: `/var/log/platform/<project_id>_stg/redis-server-<project_id>_stg.log`
139+
- **Elasticseach log**: `/var/log/elasticsearch/elasticsearch.log`
140+
- **Mail log**: `/var/log/mail.log`
141+
- **MySQL error log**: `/var/log/mysql/mysql-error.log`
142+
- **MySQL slow log**: `/var/log/mysql/mysql-slow.log`
143+
- **RabbitMQ log**: `/var/log/rabbitmq/[email protected]`
143144

144145
[hook]: {{page.baseurl}}/cloud/project/project-conf-files_magento-app.html#hooks
145146
[configlog]: {{page.baseurl}}/config-guide/cli/logging.html
146-
[slacklog]: {{page.baseurl}}/cloud/env/setup-notifications.html
147+
[slacklog]: {{page.baseurl}}/cloud/env/setup-notifications.html

0 commit comments

Comments
 (0)