in Formula/apm-server-full.rb [9:25]
def install
["fields.yml", "ingest", "kibana", "module"].each { |d| libexec.install d if File.exist?(d) }
(libexec/"bin").install "apm-server"
(etc/"apm-server").install "apm-server.yml"
(etc/"apm-server").install "modules.d" if File.exist?("modules.d")
(bin/"apm-server").write <<~EOS
exec
--path.config
--path.home
--path.logs
--path.data
"$@"
EOS
end