X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/21055bd108fecc2b7309c60358f86ae3afecfcfa..ae56a522a5782d71b7b758464e2592ac0d2ef07f:/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" } } ] } },