File 0007-Fix-default-configs.patch of Package logstash6

From 7be55990ba832de8531a0e29b21db3bb3eb7d946 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Fri, 17 Mar 2017 12:59:51 +0100
Subject: [PATCH 07/11] Fix default configs

---
 config/logstash.yml    | 8 +++++---
 config/startup.options | 2 ++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/config/logstash.yml b/config/logstash.yml
index db8ca3cd00ee..ab887065a197 100644
--- a/config/logstash.yml
+++ b/config/logstash.yml
@@ -25,7 +25,9 @@
 # Which directory should be used by logstash and its plugins
 # for any persistent needs. Defaults to LOGSTASH_HOME/data
 #
-# path.data:
+path.data: /var/lib/logstash
+# workaround for https://github.com/elastic/logstash/issues/6378
+path.queue: /var/lib/logstash/queue
 #
 # ------------ Pipeline Settings --------------
 #
@@ -61,7 +63,7 @@
 #
 # Where to fetch the pipeline configuration for the main pipeline
 #
-# path.config:
+path.config: /etc/logstash/conf.d
 #
 # Pipeline configuration string for the main pipeline
 #
@@ -205,7 +207,7 @@
 #   * trace
 #
 # log.level: info
-# path.logs:
+path.logs: /var/log/logstash
 #
 # ------------ Other Settings --------------
 #
diff --git a/config/startup.options b/config/startup.options
index 3829fdb9b5ee..e18603bccb6a 100644
--- a/config/startup.options
+++ b/config/startup.options
@@ -17,6 +17,8 @@ LS_HOME=/usr/share/logstash
 # logstash settings directory, the path which contains logstash.yml
 LS_SETTINGS_DIR=/etc/logstash
 
+LS_CONF_DIR=/etc/logstash/conf.d
+
 # Arguments to pass to logstash
 LS_OPTS="--path.settings ${LS_SETTINGS_DIR}"
 
-- 
2.26.0

openSUSE Build Service is sponsored by