maintainer-feedback requested: [Bug 244627] sysutils/beats filebeat rc.d started with wrong path.home

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 6 06:55:52 UTC 2020


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-elastic mailing
list <elastic at FreeBSD.org> for maintainer-feedback:
Bug 244627: sysutils/beats filebeat rc.d started with wrong path.home
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244627



--- Description ---
Current rc.d script is starting with -path.home=/var/db/beats/filebeat.
The correct path.home should be /usr/local/share/beats/filebeat.
/var/db/beats/filebeat is only the data directory.

Correct cli args should be

"-path.data /var/db/beats/filebeat -path.config /usr/local/etc -path.home
/usr/local/share/beats/filebeat"



see diff below:

--- /usr/local/etc/rc.d/filebeat.old	2020-01-06 12:52:53.000000000 +1100
+++ /usr/local/etc/rc.d/filebeat	2020-03-06 17:52:04.423819000 +1100
@@ -21,7 +21,7 @@
 load_rc_config $name

 : ${filebeat_enable:="NO"}
-: ${filebeat_config:="-path.home /var/db/beats/${name} -path.config
/usr/local/etc"}
+: ${filebeat_config:="-path.home=/usr/local/share/beats/${name} -path.data
/var/db/beats/${name} -path.config /usr/local/etc"}

Also I would suggest that path.config be /usr/local/etc/filebeat instead of
/usr/local/etc


More information about the freebsd-elastic mailing list