Skip to content

Commit

Permalink
Include 99 plugins by default.
Browse files Browse the repository at this point in the history
This plugin set should be the same as the ones included in "core" in
Logstash 1.4.2, so users should experience no negative impact of this.

Fixes elastic#2020
  • Loading branch information
jordansissel committed Nov 14, 2014
1 parent 82a335e commit c101812
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rakelib/artifacts.rake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace "artifact" do
end

desc "Build a tar.gz of logstash with all dependencies"
task "tar" => ["bootstrap"] do
task "tar" => ["bootstrap", "plugin:install-defaults"] do
require "zlib"
require "archive/tar/minitar"
require "logstash/version"
Expand Down Expand Up @@ -190,12 +190,12 @@ namespace "artifact" do
end # def package

desc "Build an RPM of logstash with all dependencies"
task "rpm" => ["bootstrap"] do
task "rpm" => ["bootstrap", "plugin:install-defaults"] do
package("centos", "5")
end

desc "Build an RPM of logstash with all dependencies"
task "deb" => ["bootstrap"] do
task "deb" => ["bootstrap", "plugin:install-defaults"] do
package("ubuntu", "12.04")
end
end
Expand Down
101 changes: 101 additions & 0 deletions rakelib/default_plugins.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
::DEFAULT_PLUGINS = %w(
logstash-output-zeromq
logstash-codec-collectd
logstash-output-xmpp
logstash-codec-dots
logstash-codec-edn
logstash-codec-edn_lines
logstash-codec-fluent
logstash-codec-graphite
logstash-codec-json
logstash-codec-json_lines
logstash-codec-line
logstash-codec-msgpack
logstash-codec-multiline
logstash-codec-netflow
logstash-codec-oldlogstashjson
logstash-codec-plain
logstash-codec-rubydebug
logstash-codec-spool
logstash-output-udp
logstash-filter-anonymize
logstash-filter-checksum
logstash-output-tcp
logstash-output-stdout
logstash-filter-clone
logstash-output-statsd
logstash-filter-csv
logstash-filter-date
logstash-filter-dns
logstash-filter-drop
logstash-output-sqs
logstash-output-sns
logstash-output-s3
logstash-output-redis
logstash-filter-fingerprint
logstash-filter-geoip
logstash-filter-grok
logstash-output-rabbitmq
logstash-output-cloudwatch
logstash-output-pipe
logstash-filter-kv
logstash-filter-metrics
logstash-filter-multiline
logstash-filter-mutate
logstash-output-pagerduty
logstash-output-opentsdb
logstash-output-null
logstash-filter-ruby
logstash-filter-sleep
logstash-filter-split
logstash-filter-syslog_pri
logstash-filter-throttle
logstash-output-nagios_nsca
logstash-filter-urldecode
logstash-filter-useragent
logstash-filter-uuid
logstash-filter-xml
logstash-output-nagios
logstash-input-elasticsearch
logstash-input-eventlog
logstash-input-exec
logstash-input-file
logstash-input-ganglia
logstash-input-gelf
logstash-output-lumberjack
logstash-input-generator
logstash-input-graphite
logstash-output-kafka
logstash-input-imap
logstash-input-irc
logstash-output-juggernaut
logstash-input-kafka
logstash-input-log4j
logstash-input-lumberjack
logstash-input-pipe
logstash-output-irc
logstash-input-rabbitmq
logstash-output-http
logstash-input-redis
logstash-output-hipchat
logstash-input-s3
logstash-input-snmptrap
logstash-output-graphite
logstash-input-sqs
logstash-input-stdin
logstash-output-gelf
logstash-input-syslog
logstash-input-tcp
logstash-input-twitter
logstash-input-udp
logstash-input-unix
logstash-output-ganglia
logstash-output-file
logstash-output-exec
logstash-input-xmpp
logstash-output-email
logstash-input-zeromq
logstash-output-elasticsearch
logstash-output-csv
logstash-filter-json
)
7 changes: 7 additions & 0 deletions rakelib/plugin.rake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require_relative "default_plugins"
namespace "plugin" do
task "install", :name do |task, args|
name = args[:name]
Expand All @@ -9,4 +10,10 @@ namespace "plugin" do

task.reenable # Allow this task to be run again
end # task "install"

task "install-defaults" do
DEFAULT_PLUGINS.each do |plugin|
Rake::Task["plugin:install"].invoke(plugin)
end
end
end # namespace "plugin"

0 comments on commit c101812

Please sign in to comment.