Commit stub doc for inspecting logs
This commit is contained in:
parent
36ba256e77
commit
c0ae777530
1 changed files with 19 additions and 0 deletions
19
tools/inspecting-logs.md
Normal file
19
tools/inspecting-logs.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Inspecting logs
|
||||
|
||||
ssh into a live or test server or your local development environment:
|
||||
|
||||
```bash
|
||||
journalctl
|
||||
```
|
||||
|
||||
```bash
|
||||
sudo journalctl -t drupal
|
||||
```
|
||||
|
||||
Much more you can do w/journalctl as well. For example, -f to follow (like tail -f) and --since to filter time:
|
||||
|
||||
```bash
|
||||
sudo journalctl -t drupal --since "5 minutes ago" -f
|
||||
```
|
||||
|
||||
|
Loading…
Reference in a new issue