X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/639b0336707d6c44b11b84c8b03861d580190c83..c714aba0de40828044677c7b38890e3f7ba91436:/roles/web-frontend.rb diff --git a/roles/web-frontend.rb b/roles/web-frontend.rb index 4d82bd4f6..5f23e0618 100644 --- a/roles/web-frontend.rb +++ b/roles/web-frontend.rb @@ -15,9 +15,9 @@ default_attributes( }, :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" } } ] } },