[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:53 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244627

            Bug ID: 244627
           Summary: sysutils/beats filebeat rc.d started with wrong
                    path.home
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: elastic at FreeBSD.org
          Reporter: zhoutao at laocius.org
          Assignee: elastic at FreeBSD.org
             Flags: maintainer-feedback?(elastic at FreeBSD.org)

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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-elastic mailing list