summarylogtreecommitdiffstats
path: root/logstash.service
diff options
context:
space:
mode:
authorEric Liu2019-03-26 21:34:11 -0400
committerEric Liu2019-03-26 21:34:11 -0400
commit2e850ea5c523be8bb9cb62f6dc9c2aece1d39b63 (patch)
treeb96592f3dbc09daccc92d704a45484aff9913320 /logstash.service
downloadaur-2e850ea5c523be8bb9cb62f6dc9c2aece1d39b63.tar.gz
initial commit for ELK with xpack
Diffstat (limited to 'logstash.service')
-rw-r--r--logstash.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/logstash.service b/logstash.service
new file mode 100644
index 000000000000..cba0a738e5df
--- /dev/null
+++ b/logstash.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=Logstash
+Documentation=http://www.elastic.co
+After=elasticsearch.service
+
+[Service]
+Environment=LS_HOME=/var/lib/logstash
+Environment=LS_HEAP_SIZE="500m"
+Environment=LS_CONF_DIR=/etc/logstash/conf.d
+Environment=LS_LOG_DIR=/var/log/logstash
+Environment=LS_SETTINGS_DIR=/etc/logstash
+User=logstash
+Group=logstash
+ExecStart=/usr/share/logstash/bin/logstash -f $LS_CONF_DIR --path.logs $LS_LOG_DIR --path.data $LS_HOME --path.settings $LS_SETTINGS_DIR
+StandardOutput=null
+StandardError=journal
+SuccessExitStatus=143
+LimitNOFILE=65535
+TimeoutStopSec=20
+LimitMEMLOCK=infinity
+
+[Install]
+WantedBy=multi-user.target