Commit graph

37 commits

Author SHA1 Message Date
Pier-Hugues Pellerin
bf2d670d2a Logstash-docgen tool v2
**Motivation**: We have decided to rewrite the documentation generator to add more features
to our documentation and to fix some outstanding bugs.

This PR addresses the following problem:
- Hard to add new features to the code base.
- The code was tied with Logstash.
- No easy way to publish the doc for a single plugin
- The plugin author was not able to test their documentation changes
- The reported errors were hard to understand.
- No easy way to automate it.
- the minimal requirement on base classes.

Fixes #5720
2016-11-30 19:57:40 -05:00
Suyog Rao
270c90f8c6 Add cef codec to default plugins
Fixes #6270
2016-11-17 13:26:47 -05:00
Pere Urbon-Bayes
a0db616fca remove jms from skip list
Fixes #5555
2016-06-28 04:59:26 -04:00
Suyog Rao
33771c1a64 Remove more plugins, add back netflow
Fixes #5254
2016-05-13 18:04:03 +00:00
Suyog Rao
96c09ea718 Update default plugins for 5.0
5.0 is a chance for us to review and remove any plugins that we don't have to bundle by default. These plugins are still supported and maintained, but the default package should only contain most popular, most used plugins.

Removed plugins:

logstash-filter-anonymize: Replaced with newer logstash-filter-fingerprint
logstash-input-zeromq/output: Not a lot of users. Most users seem to prefer rabbitmq, redis, kafka as broker

Please comment if you'd like to remove more/less

Fixes #5254
2016-05-13 18:04:03 +00:00
Pier-Hugues Pellerin
3d875c8f70 Remove oldlogstashjson from the default plugin list
This plugins was used to migrate from logstash json schema 0 to 1.

Fixes #5245
2016-05-05 17:18:28 +00:00
Pier-Hugues Pellerin
97352c7960 Remove some plugins that failed the build when creating the tar.gz
Fixes #5054
2016-04-07 14:39:36 +00:00
Pere Urbon-Bayes
42710a4ffd add expectations for json and plain text responses for the hot threads api tests
format test properly for the node_spec api

Introduce a more proper organization of the dummy/mock runner to avoid
having wrong state propagaged across the different tests. This was
discovered by the unnecessary need to have the rubydebug codec as it was
due to wrong pipeline startup.

make the node stats test sync with last changes in data formats

improve web api service logic from reviews

remove the requirement of using output-null as only with output {} you get the same effect

Fixes #4782
2016-03-14 14:07:25 +00:00
Pere Urbon-Bayes
79e2d0040f Make sure all web api test are actually going through the hole pipe and getting data out of a real logstash execution.
Test improvements:

* Cleanup non used fixture.
* Improve node_stats tests by adding omre context and format checks.
* Add a new node_specs endpoint test that checks the expected data is
  returned for the hot_threads resource.

Fixes #4782
2016-03-14 14:07:25 +00:00
Andrew Cholakian
c2715d0ded Add http poller to default plugins list
Fixes #4409
2016-01-03 23:06:44 +00:00
Suyog Rao
146b3f6c5d Add jdbc input to default package list
JDBC input is a popular plugin and has been stable over the last
few releases.

Fixes #4198
2015-11-16 18:02:54 +00:00
Pier-Hugues Pellerin
ed97013196 Logstash-input-beats is now part of the default plugins
Fixes #4057
2015-10-19 18:22:22 +00:00
Suyog Rao
bfbb49dc14 Remove elasticsearch_http from default plugins list
Fixes #4002
2015-10-08 13:35:30 +00:00
Suyog Rao
e2a5e92faf Jenkins: Ignore DynamoDB for now. Make sure all plugins tests pass
Fixes #3839
2015-09-02 17:53:26 +00:00
Suyog Rao
229c42a964 Bundle http input plugin with defaults
Fixes #3507
2015-06-29 21:19:13 +00:00
Aaron Mildenstein
3d3cd8ab8f Do not include rackspace input/output in tests
Block testing by regex.

fixes #3518

Fixes #3519
2015-06-29 18:03:34 +00:00
Pere Urbon-Bayes
1849ff23bb add logstash-output-webhdfs as is released, but still not completely integrated with logstash to be run in the all plugins test
Fixes #3401
2015-06-09 09:31:18 +00:00
Pere Urbon-Bayes
06c5a893b5 add logstash-input-http as requested by jsvd
Fixes #3399
2015-06-09 09:05:57 +00:00
Pere Urbon-Bayes
8012c98895 add the perfmon plugin to the skip list
Fixes #3399
2015-06-09 09:05:57 +00:00
Pere Urbon-Bayes
d5fc55b3a6 update is_released to use Gems.info
Fixes #3391
2015-06-08 13:11:26 +00:00
Pere Urbon-Bayes
11d2f7b3ed fix the case where a plugin is released and has a similar name to one still not released, fixing failured on the all plugins test
Fixes #3391
2015-06-08 13:11:26 +00:00
Colin Surprenant
7a1ec64c23 use :build dependencies
fix octokit dep

fixes #3171
2015-05-06 08:27:57 -04:00
Colin Surprenant
48bcc5b74d cleanup dependencies and rely on logstash-core gem
remove unused load path

use either local core lib dir or logstash-core gem

include spec in logstash-core

do not include lib, spec and locales dirs in package root

environment bootstrapping in lib/bootstrap.rb

added comments

move pluginmanager out of logstash-core

kafla installation solved by pluginmanager refactor

refactor bootstrap code

refactor shell scripts to simplify and DRY, indirect rspec command to our ruby launcher

add bin/rspec

cut by half the bin/plugin and bin/rspec startup time

fix drip context

use printf instead of tr

updated Windows bin scripts

missing gemspec in gemspec

use gem instead of gemspec so our plugin manager can correctly install logstash-core

generate packages including locally built logstash-core gem

move jenkins developmnent dependencies into Gemfile, they do not belong in logstash-core

path leftover

clean help agent help usage message and remore rspec in available command

comments cosmetics

update Bundler dependency, all recent testing have been made with 1.9.4

updated .lock file with regard to updated Gemfile

cleanup gemspec, Gemfile and regen .lock file

added progress output

avoid dual require on version

closes #3096
2015-05-04 18:17:22 -04:00
Pere Urbon-Bayes
a01ffd4ee6 slim down the skip list from plugins that are now released and accesible
Fixes #3128
2015-04-29 06:25:25 +00:00
Colin Surprenant
3dabba80fa revert multi_filter removal and add check for cancelled events
add filter and flush compiles functions specs

missing multiline filter for core specs

fixes #3100
2015-04-27 13:54:18 -04:00
Pere Urbon-Bayes
9e2ae1589e add a check for a plugin to be in rubygems before going to install it
make sure dependency gems is installed

cleanup unnecessary code

Fixes #3021
2015-04-15 14:31:39 +00:00
Pere Urbon-Bayes
058e9967a7 update the default plugins exclude list for currently empty plugins
Fixes #3017
2015-04-15 09:07:12 +00:00
Pier-Hugues Pellerin
cd4fb38fb5 Add elasticsearch_http output plugin for easy upgrade path
Fixes #2885
2015-03-24 16:25:21 +00:00
Pier-Hugues Pellerin
643627d3a6 Heartbeat input was missing from the official distribution
Fixes #2849
2015-03-18 22:59:32 +00:00
Pier-Hugues Pellerin
560edd07ee add jdbc input to the skiplist
Fixes #2716
2015-02-27 20:38:13 +00:00
Pier-Hugues Pellerin
34f2812fd2 add logstash-output-logentries to the skiplist when doing install-all until the plugin is actually published
Fixes #2716
2015-02-27 20:38:13 +00:00
Pier-Hugues Pellerin
9e7d6204a5 plugins/bundler refactor
squashed 113 commits by @ph, @colinsurprenant, @jordansissel, @purbon, @jsvd

cleaning the environment.rb

initial work

remove multiples polyglot

force to load rubygems

notice

point to one config

update lock

bootstrap will package the standard application until we have the plugin manager on top of the gemfile

add the gem path to find bundler

fixing dependencies

add gemfiles and bundle

comment platform requiremments in the gemfile

Set `Gem.paths = ...` to the GEM_HOME

Without this, `bin/logstash` will error:

    LoadError: no such file to load -- bundler
         require at org/jruby/RubyKernel.java:1071
         require at C:/Users/jls/Documents/GitHub/logstash/vendor/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require
.rb:55
         set_gem_paths! at C:/Users/jls/Documents/GitHub/logstash/lib/logstash/environment.rb:64
         (root) at C:\Users\jls\Documents\GitHub\logstash\lib\logstash\runner.rb:8

Patch JRuby's jar_installer.rb with a newer version

jar-dependencies is shipped by default with JRuby. However, the version
it ships with has a bug, and despite upgrading jar-dependencies to
0.1.7, which has the fix, JRuby continues to load the "shipped" version
which has a bug.

This patch will patch JRuby by copying in our own jar_installer.rb from
jar-dependencies master, This patching occurs while unpacking JRuby just
after `vendor:jruby`.

The jar_installer.rb is MIT-licensed and no changes were made.

Add `test:plugins` to test all installed plugins

Tell rspec to do the wildcards instead of trying to make the shell do it.

This fixes test runs on Windows (which doesn't do wildcards like this).
The solution was to tell RSpec to look for all files matching a certain path pattern
within the GEM_HOME.

do not run bundle install twice for test:plugins

Gemfile manipulation classes

Gemfile now in root

install POC with new Gemfile classes

specs for the Gemfile classes

header, some bug fixes

spec header

WIP pluginmanager refactor

generated format

updated .lock

unused file

removed --proxy option

fail elegantly

initial support for update

refactor invoke_bundler, debug output

removed old .lock file

no plugin Gemfile

use clamp error handling

reenable list, some cleanups

support for more finders

refactored using new finders

refactor using is_installed_plugin? and some cleanups

verify valid plugin and update all now only update plugins not all gems

support multiple plugins argument, --force option to bypass validation

list only explicitly installed plugins by default, --all option to include dependencies

support multiple plugins argument

renamed all_installed_plugins to all_installed_plugins_gem_specs and return specs, added comments

remove then

update_gem bug, comments

moved gems as development dependencies

updated .lock file

support for :without

--development option, better output feedback, cleanups

abort when no plugins

cosmetic

param fix, cleanups

removed deprecated .lock files

remove deprecated bundler_install_command and struggling with set_gem_paths

refactored all bundler stuff into LogStash::Bundler

rakelib refactor

refactored bundler code

Bundler.real_fuckin_reset

real_fuckin_reset is now reset_settings, removed unnecessary resetings, cleanups

duplicate plugins requirements merging

cleanups

added vendor:rake, cleanups

broke test tasks into 2 steps, first invoke install then test

rake task name fix

proper error exit code

Freezing the jar-dependencies, ruby-maven, tools

set gem paths on error

renamed TEST_PLUGINS to CORE_PLUGINS, added comments

replace test by core, cleanups

DRYied test tasks

missing gemspec

fixed output

correct image build for artifacts

removed deprecated Gemfiles

fix update with multiple plugins arguments

fix update with multiple plugins arguments

remove deprecated code

implicit begin, explicit block

spec for LogStash::Bundler

remove explit require of rubygems

renamed Environment.set_gem_paths! to bundler_setup!

rename Dsl to DSL

respect to_s contract and return empty string not nil

rename DSL.parse gemfile argument to gemfile_content

better error message

renamed --force to --[no-]verify

refactored exit error handling

use explicit array items in iterators

fix --development switch validation, cleaned bundler_options hash init

renamed is_xxx? methods to xxx?

use direct method call on collection

removed double negative, typo

move maven tools monkey patch into maven_tools_patch.rb

renamed build-image to prepare

fix forgotten argument name change

namespace cleanups

spec files glob pattern

cleanup

cleanup

cleanup

Fix the file-dependencies version to 0.1.5 to fix path issues on windows

monkeypatch Rubygems to silence ffi warning

list all plugin gems by default, new options

adding rake task to get faster feedback loop on windows

refactor bat scripts

Use an unreleased filedependencies gem and skip installing drupal

bump file-dependencies

use the released gem of file-dependencies

Add a set of scripts that simplify:   * The necessary setup for the CI test to be executed.   * The actuall CI test execution, having a different scripts for each     different workflow. This makes the test execution simpler and standard, so changes in internal task don't need big changes in the CI config. It also documents and makes easy for developers to run the tests.

Fixes #2640

refactored test to not depend on STDOUT

create a .rspec file to pass some options used while the code is in the testing environment

add coveralls and simplecov as a development dependencies so we can run coverage tests

remove unnecessary .bundle directory from the artifact

In a release, the .bundle/config has a BUNDLE_PATH setting that can
interfere by misleading the plugin manager into not seeing the
vendor/bundle path.

Fixes #2647

Fixes #2475
2015-02-20 17:31:43 +00:00
Suyog Rao
01ad1c5123 Add couchdb and es_bulk to default plugins
Fixes #2389
2015-01-21 22:18:09 +00:00
Suyog Rao
5d7119ff55 With #2320, Kafka was removed from the default install list to save ~30mb from the LS release package.
We had a discussion internally and arguments were made for having Kafka included back to make it consistent with the other packaged plugins. Moving forward (post v1.5), the idea is to have Logstash ship with a small list of plugins by default to reduce the install size. This would also allow users to only install plugins which are needed for their use-case. This is made easier by the recent plugin management infrastructure which can add/remove plugins at any time. Once we have more data on which plugins are popular, we will open an issue to only include those in the default package. Until then Kafka stays

Fixes #2343
2015-01-15 19:23:22 +00:00
Suyog Rao
7209eaec03 Remove kafka input and output from default plugins packaging
Fixes #2320
2015-01-07 10:09:50 +00:00
Joao Duarte
b21ab88885 remove spool codec from default_plugins
Fixes #2167
2014-12-05 20:43:36 +00:00
Jordan Sissel
c1018129f4 Include 99 plugins by default.
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 #2020
2014-11-14 22:04:05 +00:00