Update README.md
Costa Tsaousis committed
Oct 3, 2023 at 13:32 UTC
2da22320ef81b4eac4614b3aaace9437a8d31bd1
1 file changed
+14
-1
collectors/systemd-journal.plugin/README.md
+14
-1
@@ -330,7 +330,20 @@ URL=http://centralization.server.ip:19532
330
331
Remember to match the protocol (http/https) the server expects.
332
333
-Finally, enable and start `systemd-journal-upload`, like this:
333
+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:
334
+
335
+```sh
336
+sudo systemctl edit systemd-journal-upload
337
+```
338
+
339
+At the top, add:
340
+
341
+```
342
+[Service]
343
+Restart=always
344
+```
345
+
346
+Then, enable and start `systemd-journal-upload`, like this:
347
348
```sh
349
sudo systemctl enable systemd-journal-upload