lusis / chef-logstash

Semi-official Logstash cookbook
Other
271 stars 353 forks source link

Upgrade to 1.5 #421

Open sisense-dev opened 9 years ago

sisense-dev commented 9 years ago

I tried to change the version to 1.5. It seems that there are some broken things:

maoo commented 9 years ago

I managed to get 1.5 working using the following default attributes

default['logstash']['version'] = '1.5.2'
default['logstash']['instance_default']['java_home']  = '/usr/lib/jvm/jdk1.7.0_75'

default['logstash']['instance_default']['version'] = node['logstash']['version']
default['logstash']['instance_default']['source_url'] = "https://download.elasticsearch.org/logstash/logstash/logstash-#{node['logstash']['version']}.tar.gz"
default['logstash']['instance_default']['checksum'] = '1d1805d388392a69f5049b35c176186389a7f8bf7347c4528c255edc1f9b0d6a'

I also had to change the following in runit run script - https://github.com/Alfresco/chef-logstash/commit/c6d07f44243d9aab5546693920cbd7b59443071e

However I'm currently stuck on plugin installation, as Logstash 1.5 introduces a new mechanism. I'll work on PR.

ghost commented 9 years ago

It looks like --pluginpath is supported again as of 1.5.3 - https://github.com/elastic/logstash/blob/master/CHANGELOG.md

maoo commented 9 years ago

Thank you @cmjosh, I got logstash 1.5.3 working using master branch of this cookbook (see https://github.com/lusis/chef-logstash/pull/422)

akshah123 commented 9 years ago

:+1: it would be great to be upgrade to 1.5 version as logstash 1.4 keeps hanging around some JSON messages.