From c0ae777530a25d9349420623284f7988130444d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 17 Aug 2020 21:45:41 -0400 Subject: [PATCH] Commit stub doc for inspecting logs --- tools/inspecting-logs.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tools/inspecting-logs.md diff --git a/tools/inspecting-logs.md b/tools/inspecting-logs.md new file mode 100644 index 0000000..dc6a867 --- /dev/null +++ b/tools/inspecting-logs.md @@ -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 +``` + +