Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Mar 2020 06:55:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        elastic@FreeBSD.org
Subject:   [Bug 244627] sysutils/beats filebeat rc.d started with wrong path.home
Message-ID:  <bug-244627-37421@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244627

            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@FreeBSD.org
          Reporter: zhoutao@laocius.org
          Assignee: elastic@FreeBSD.org
             Flags: maintainer-feedback?(elastic@FreeBSD.org)

Current rc.d script is starting with -path.home=3D/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:=3D"NO"}
-: ${filebeat_config:=3D"-path.home /var/db/beats/${name} -path.config
/usr/local/etc"}
+: ${filebeat_config:=3D"-path.home=3D/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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244627-37421>