Created
August 7, 2013 18:12
-
-
Save eherot/6176803 to your computer and use it in GitHub Desktop.
miah/logstash no method error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set['logstash']['service_options']['url'] = "http://ops.evertrue.com.s3.amazonaws.com/pkgs/logstash-1.1.13-flatjar.jar" | |
| set['logstash']['service_options']['checksum'] = "5ba0639ff4da064c2a4f6a04bd7006b1997a6573859d3691e210b6855e1e47f1" | |
| set['logstash']['service_options']['version'] = "1.1.13-flatjar" | |
| set['logstash']['service_options']['service_type'] = "runit" | |
| set["logstash"]["shipper"]["redis_hosts"] = [ "127.0.0.1" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # irrelevant stuff removed... | |
| depends 'redis' | |
| depends 'kibana' | |
| depends 'elasticsearch' | |
| depends 'logstash' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include_recipe "redis::server" | |
| include_recipe "elasticsearch" | |
| include_recipe "kibana" | |
| include_recipe "runit" | |
| include_recipe "java::openjdk" | |
| %w{ | |
| shipper | |
| indexer | |
| }.each do |instance_name| | |
| logstash_instance instance_name do | |
| url node.logstash.service_options[:url] | |
| checksum node.logstash.service_options[:checksum] | |
| version node.logstash.service_options[:version] | |
| service_type node.logstash.service_options[:service_type] | |
| action [:create,:enable] | |
| end | |
| end | |
| # Shipper | |
| logstash_config 'syslog_file_input' do | |
| instance "shipper" | |
| plugin "file" | |
| plugin_type "input" | |
| plugin_config({ | |
| type => "syslog", | |
| path => ["/var/log/rsyslog/for_logstash.log"], | |
| start_postion => "beginning" | |
| }) | |
| end | |
| logstash_config "redis_output" do | |
| instance "shipper" | |
| plugin "redis" | |
| plugin_type "output" | |
| plugin_config({ | |
| host => [ node["logstash"]["shipper"]["redis_hosts"] ], | |
| data_type => "list", | |
| key => "logstash", | |
| batch => true | |
| }) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment