]> git.openstreetmap.org Git - chef.git/blobdiff - roles/web-backend.rb
Use packages libosmium and protozero on taginfo server.
[chef.git] / roles / web-backend.rb
index 4c6dff43f312116773f55df48343e7fe6b78989d..d59ce812e00c9608aa0301b520725e70f95477b2 100644 (file)
@@ -10,9 +10,9 @@ default_attributes(
   },
   :logstash => {
     :forwarder => {
   },
   :logstash => {
     :forwarder => {
-      :files => [
-        { :paths => ["/var/log/apache2/access.log"], :fields => { :type => "apache" } },
-        { :paths => ["/var/log/web/rails-logstash.log"], :fields => { :type => "rails" } }
+      "filebeat.prospectors" => [
+        { "input_type" => "log", "paths" => ["/var/log/apache2/access.log"], "fields" => { "type" => "apache" } },
+        { "input_type" => "log", "paths" => ["/var/log/web/rails-logstash.log"], "fields" => { "type" => "rails" } }
       ]
     }
   },
       ]
     }
   },