summarylogtreecommitdiffstats
path: root/filebeat.service
diff options
context:
space:
mode:
authorJustin Kromlinger2022-01-08 17:30:31 +0100
committerJustin Kromlinger2022-01-08 17:30:31 +0100
commit36590c8d3e0f879a9a008544b45d7e7f57cf060a (patch)
treea0ca759fbbe3f21144911ec694949a3f9380060c /filebeat.service
downloadaur-36590c8d3e0f879a9a008544b45d7e7f57cf060a.tar.gz
Moved from community
Diffstat (limited to 'filebeat.service')
-rw-r--r--filebeat.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/filebeat.service b/filebeat.service
new file mode 100644
index 000000000000..080ecc8398f2
--- /dev/null
+++ b/filebeat.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Filebeat sends log files to Logstash or directly to Elasticsearch.
+Documentation=https://www.elastic.co/products/beats/filebeat
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Environment="BEAT_LOG_OPTS=-e"
+Environment="BEAT_CONFIG_OPTS=-c /etc/filebeat/filebeat.yml"
+Environment="BEAT_PATH_OPTS=-path.home /usr/share/filebeat -path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs /var/log/filebeat"
+ExecStart=/usr/bin/filebeat $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target