app-admin/filebeat-bin: use bundled example config
authorTomas Mozes <tmozes@sygic.com>
Mon, 7 Dec 2015 14:27:07 +0000 (15:27 +0100)
committerTomas Mozes <tmozes@sygic.com>
Mon, 7 Dec 2015 14:27:07 +0000 (15:27 +0100)
app-admin/filebeat-bin/filebeat-bin-1.0.0.ebuild
app-admin/filebeat-bin/files/filebeat.yml.example [deleted file]

index 9d51925733459df9c945ecadc299e82d02d168de..a6d18e4ed2ce13f9928d85519add234d212897ce 100644 (file)
@@ -36,12 +36,12 @@ src_install() {
 
        fperms 0750 /var/lib/${MY_PN}
 
-       insinto /etc/${MY_PN}
-       doins "${FILESDIR}/filebeat.yml.example"
-
        newconfd "${FILESDIR}/${MY_PN}.confd" ${MY_PN}
        newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
 
+       insinto /etc/${MY_PN}
+       newins ${MY_PN}.yml ${MY_PN}.yml.example
+
        dobin ${MY_PN}
 }
 
diff --git a/app-admin/filebeat-bin/files/filebeat.yml.example b/app-admin/filebeat-bin/files/filebeat.yml.example
deleted file mode 100644 (file)
index 06c599c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-filebeat:
-  prospectors:
-  -
-      paths:
-        - /var/log/*.log
-        - /var/log/debug
-        - /var/log/messages
-        - /var/log/syslog
-      input_type: log
-
-output:
-  elasticsearch:
-    hosts: ["localhost:9200"]
-    index: "logstash"