summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-10-03 13:32:52 +0300
committerGitHub <noreply@github.com>2023-10-03 13:32:52 +0300
commit2da22320ef81b4eac4614b3aaace9437a8d31bd1 (patch)
treeadf87d6f08672931ec77b89b9e9ec46a959f0ad3
parentcca899db4c2441939c40c3b6b358f216dcedc090 (diff)
Update README.md
-rw-r--r--collectors/systemd-journal.plugin/README.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/collectors/systemd-journal.plugin/README.md b/collectors/systemd-journal.plugin/README.md
index a97e2d8ddb..f420adefd7 100644
--- a/collectors/systemd-journal.plugin/README.md
+++ b/collectors/systemd-journal.plugin/README.md
@@ -330,7 +330,20 @@ URL=http://centralization.server.ip:19532
Remember to match the protocol (http/https) the server expects.
-Finally, enable and start `systemd-journal-upload`, like this:
+Edit `systemd-journal-upload`, and add `Restart=always` to make sure the client will keep trying to push logs, even if the server is temporarily not there, like this:
+
+```sh
+sudo systemctl edit systemd-journal-upload
+```
+
+At the top, add:
+
+```
+[Service]
+Restart=always
+```
+
+Then, enable and start `systemd-journal-upload`, like this:
```sh
sudo systemctl enable systemd-journal-upload