-apt_source "logstash-forwarder" do
- template "elasticsearch.list.erb"
- url "http://packages.elasticsearch.org/logstashforwarder/debian"
- key "D88E42B4"
+apt_source "elasticsearch5.x" do
+ source_template "elasticsearch.list.erb"
+ url "https://artifacts.elastic.co/packages/5.x/apt"
+ key "D27D666CD88E42B4"
+end
+
+apt_source "logstash" do
+ source_template "elasticsearch.list.erb"
+ url "https://packages.elasticsearch.org/logstash/2.3/debian"
+ key "D27D666CD88E42B4"