From 79a9b72e30691ac3be816cc1d992cca8602a9afb Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 8 Jan 2018 01:37:05 +0100 Subject: [PATCH] Specify storage paths Signed-off-by: Knut Ahlers --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 80dbb9f..15dbe50 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -36,7 +36,10 @@ Requires=network-online.target [Service] - ExecStart=/usr/local/bin/journalbeat -c /etc/journalbeat.yaml + ExecStart=/usr/local/bin/journalbeat \ + -c /etc/journalbeat.yaml \ + -path.home /var/lib/journalbeat \ + -path.logs /var/log Restart=on-failure RestartSecs=5