aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2024-11-04 21:45:43 -0500
committerAnthony Wang2024-11-04 21:46:02 -0500
commitbf7871a553cf6bdf198f356d8617bb7460a7ab33 (patch)
treeeffba0a691b5ae1444d08a9d4edc72e744f49c79
parent5f2c94e2bce1c0eab50ea14387ff959422d8fc0d (diff)
Improve the journalctl command for reading site logs
-rw-r--r--content/posts/site-analytics.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/posts/site-analytics.md b/content/posts/site-analytics.md
index f88a610..644c96b 100644
--- a/content/posts/site-analytics.md
+++ b/content/posts/site-analytics.md
@@ -13,7 +13,7 @@ I usually don't care much about who visits my site, but I was kind of curious to
First, I fetched the site logs:
```fish
-journalctl -g a.exozy.me > | grep nginx > out
+journalctl -u nginx -g " a.exozy.me " > out
```
Then, I used GoAccess to analyze the logs, selecting the first option for log format: