diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-10-03 13:32:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 13:32:52 +0300 |
commit | 2da22320ef81b4eac4614b3aaace9437a8d31bd1 (patch) | |
tree | adf87d6f08672931ec77b89b9e9ec46a959f0ad3 | |
parent | cca899db4c2441939c40c3b6b358f216dcedc090 (diff) |
Update README.md
-rw-r--r-- | collectors/systemd-journal.plugin/README.md | 15 |
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 |