Wed Mar 20 2024 12:13:54 GMT+0000 (Coordinated Universal Time)
The Shell log records all commands that are executed by the application user. This includes SSH, cron, or user commands when executed in context of the site. This log is specific to Cloud Classic environments. It has a predefined format and can run Python, script, binary, or PHP.
The following line is a representative example of the data written into your website's Shell log:
Jan 9 20:51:28 web-1234 webapp[15605]: {"user": "webapp", "path": "/home/webapp", "pid": "15588", "user_session_id": "15588", "stage": "prod", "command": "ls", "status": "0"}
Each of the items in the Shell log is noted in the following table, along with its description:
Position | Data | Description |
---|---|---|
0 | Jan 9 20:51:28 | The date and time when the command completes its execution. This is represented in the HTTP date/time format. |
1 | web-1234 | The server from where the Shell command is run. |
2 | webapp | The user who runs the Shell command. |
3 | 15605 | The unique PID for the log. |
4 | webapp | The user who runs the Shell command. |
5 | /home/webapp | The path to the requested resource. |
6 | 15588 | The unique PID for the process. |
7 | 15588 | The ID for the entire session. |
8 | prod | The stage of the site. For example, dev, prod. |
9 | ls | The command that is run to get the Shell logs. |
10 | 0 | The execution status or exit code of the command. For example, 0 is the status code for success. |