summarylogtreecommitdiffstats
path: root/filebeat-oss.service
diff options
context:
space:
mode:
authorThorsten Müller2022-09-21 16:58:31 +0200
committerThorsten Müller2022-09-21 16:58:31 +0200
commit87d5fa90a325eaabc94b2333113932ad2355d750 (patch)
treebdf2355e438ecbcb7a69b2344cb25accdb666471 /filebeat-oss.service
downloadaur-87d5fa90a325eaabc94b2333113932ad2355d750.tar.gz
new package of filebeat-oss binary
Diffstat (limited to 'filebeat-oss.service')
-rw-r--r--filebeat-oss.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/filebeat-oss.service b/filebeat-oss.service
new file mode 100644
index 000000000000..022b86908b64
--- /dev/null
+++ b/filebeat-oss.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Filebeat OSS sends log files to Logstash or directly to Elasticsearch OSS or OpenSearch.
+Documentation=https://www.elastic.co/guide/en/beats/filebeat/7.12/index.html
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Environment="BEAT_LOG_OPTS=-e"
+Environment="BEAT_CONFIG_OPTS=-c /etc/filebeat-oss/filebeat.yml"
+Environment="BEAT_PATH_OPTS=-path.home /usr/share/filebeat-oss -path.config /etc/filebeat-oss -path.data /var/lib/filebeat-oss -path.logs /var/log/filebeat-oss"
+ExecStart=/usr/bin/filebeat-oss $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target