summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mullins <crmullin@fastmail.com>2021-01-02 23:12:15 +0000
committerChris Mullins <crmullin@fastmail.com>2021-01-02 23:12:15 +0000
commit1088520535b278037c58fe3bc185130315b2c851 (patch)
tree7defeda8144e5ca8097fae1e55028fa1d2b8f6c5
parent1532b67c5121ce4ca4c077542c52d136cf6537ba (diff)
downloadpython-systemd-1088520535b278037c58fe3bc185130315b2c851.tar.gz
Add link to journal fields docs
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7e972a8..1bbcdd9 100644
--- a/README.md
+++ b/README.md
@@ -119,6 +119,8 @@ Show entries by a specific executable (`journalctl /usr/bin/vim`):
for entry in j:
print(entry['MESSAGE'])
+ - Note: matches can be added from many different fields, for example entries from a specific process ID can be matched with the `_PID` field, and entries from a specific unit (ie. `journalctl -u systemd-udevd.service`) can be matched with `_SYSTEMD_UNIT`. See all fields available at the [systemd.journal-fields docs](https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html).
+
Show kernel ring buffer (`journalctl -k`):
from systemd import journal