Package Details: filebeat-oss-bin 8.17.0-0

Git Clone URL: https://aur.archlinux.org/filebeat-oss-bin.git (read-only, click to copy)
Package Base: filebeat-oss-bin
Description: Data shippers for Elasticsearch
Upstream URL: https://www.elastic.co/products/beats
Licenses: Apache
Conflicts: filebeat-oss
Submitter: thorko
Maintainer: thorko
Last Packager: thorko
Votes: 1
Popularity: 0.000005
First Submitted: 2022-09-21 14:58 (UTC)
Last Updated: 2024-12-13 10:19 (UTC)

Latest Comments

tachtler commented on 2024-12-19 10:47 (UTC) (edited on 2024-12-19 10:50 (UTC) by tachtler)

It is quite simple - there is only one '-' character missing from the path information in the file filebeat-oss.service (see also):


11:43 $ git diff
diff --git a/filebeat-oss.service b/filebeat-oss.service
index 022b869..219d19b 100644
--- a/filebeat-oss.service
+++ b/filebeat-oss.service
@@ -7,7 +7,7 @@ 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”
+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

woodsb02 commented on 2024-12-15 15:21 (UTC)

I was getting an error with systemctl start filebeat-oss.service.

I fixed it by adjusting the systemd service file to align with the one used in the official .deb file available here: https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.17.0-amd64.deb

diff --git a/filebeat-oss.service b/filebeat-oss.service
index 022b869..3d6912a 100644
--- a/filebeat-oss.service
+++ b/filebeat-oss.service
@@ -5,10 +5,12 @@ Wants=network-online.target
 After=network-online.target

 [Service]
-Environment="BEAT_LOG_OPTS=-e"
+UMask=0027
+Environment="GODEBUG='madvdontneed=1'"
+Environment="BEAT_LOG_OPTS="
 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
+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 --environment systemd $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
 Restart=on-failure

 [Install]