Commit graph

33 commits

Author SHA1 Message Date
Pere Urbon-Bayes
17a5f1241a add the concept of a jar manager to load jars within plugins
make the jar manager to have some of the checks already present in the old load_elasticsearch_jars

removed the load_elasticsearch_jars! method as it's a legacy code from when ES was delivered within LS, nowadays this comes within the differents plugins

clean up Environment::JAR_DIR as is another legacy variable not used anymore

move the jar loading code within the environment module

ammend previous commit adding more clear code

ammend previous commits

added a few simple unit test for the jar manager in the environment module

refactor spec naming

dry out common code for loading jars

clean up env_spec bein in the util dir

cleaning up logstash-core dependencies related to jar-dependencies

ammend stale maen patches created for the LS way of using maven plugins

applied some comments coming from the review by @ph

bring back the maven tools and jar-dependency code as we still need some code like this for the kafka plugins

Revert "bring back the maven tools and jar-dependency code as we still need some code like this for the kafka plugins"

This reverts commit c23f456362776c0a600d78369c2ece8789fa49c2.

Fixes #2980
2015-04-14 15:59:32 +00:00
Brian Low
2e800945c8 Gracefully shutdown the agent on SIGTERM. Fixes #1675
Fixes #1676
2015-02-02 08:49:55 +00:00
Pier-Hugues Pellerin
00970ca9bc fix merge conflicts
Fixes #2280
2015-01-21 22:08:12 +00:00
Pier-Hugues Pellerin
6b3b1fdb46 Refactoring of the version check using comparable
Fixes #2331
2015-01-14 23:46:37 +00:00
Pier-Hugues Pellerin
aa6a2728a5 Code review comments
Fixes #2331
2015-01-14 23:46:37 +00:00
Pier-Hugues Pellerin
1d0d321e2c Small typos in the locale
Fixes #2331
2015-01-14 23:46:37 +00:00
Pier-Hugues Pellerin
15eaeb57ca Use the gem specification from the plugin to display the version notice to the user
Fixes #2331
2015-01-14 23:46:36 +00:00
Jasper Lievisse Adriaanse
c7f3a85444 Adjust help output to match actual searched paths for plugins
Fixes #2300
2014-12-29 12:14:22 +00:00
Bernd
8e55185f73 [JIRA-2046][JIRA-2181] fix usage help
Fixes #1354
2014-11-21 13:40:55 +00:00
Jordan Sissel
267a8d753d Accept file and http URI in the -f flag.
This patch was slightly modified to make it merge correctly against
master
(original patch by @jsvd is #1873)

Closes #1873
2014-11-11 00:21:07 +00:00
zhujinhe
06be3c1fa5 Update en.yml
Closes #1924
2014-10-22 17:07:56 -07:00
Jordan Sissel
db5c8ff9e6 Remove the "how to get help" banner because nobody reads it.
There's several indications that folks don't actually read this banner
when unexpected errors occur. If nobody's reading it, then it's just
wasting space in the output.

I would cite references, but will not because there's no need to shame
anyone.

Fixes #1442
2014-10-02 16:39:48 +00:00
Marcus McCurdy
2de63a7650 Fixes spelling in en.yml
Closes #1544
2014-07-18 09:51:56 -07:00
Jordan Sissel
bbe61d720e On config failure, tell users about --configtest
I'm not sure this is the best approach, but notifying users about it
can't hurt I suppose. Suggestion from @jamtur01
2014-01-31 09:44:42 -08:00
Aaron Mildenstein
66839e2a13 Merge pull request #716 from wiibaa/jira-1149
Further validate date filter within register method

Thanks for making Logstash awesome! :)
2013-11-19 15:56:49 -08:00
Jordan Sissel
3a767b974e deprecate -v and -vv flags in favor of the more obvious --verbose and
--debug
2013-11-15 15:10:24 -08:00
Jordan Sissel
b9c3f2acc1 Be more obvious that worker count is ignored but otherwise work will continue 2013-10-18 16:34:18 -07:00
Jordan Sissel
a31fca8273 - Include a (hopefully) better warning message when using an output
plugin that doesn't support workers.
- Remove worker_setup_skip hackery; not needed.
2013-10-18 16:27:41 -07:00
Wiibaa
07964a5ba8 Further validate date filter within register method 2013-10-11 21:55:32 +02:00
Jordan Sissel
e79f53646a - include error in plugin load failures 2013-09-03 17:45:34 -07:00
Jordan Sissel
6cde55106b - add exception class in debug mode
- emit exceptions on config compile errors.
2013-08-20 22:55:32 -07:00
Dmitry Koprov
fc1490bc67 fixes the typo in locales 2013-07-29 09:39:41 +04:00
Jordan Sissel
eb78a21b9d - add missing help entries
- fix formatting
2013-06-17 21:51:15 -07:00
Jordan Sissel
dfc33ae9cd yaml is dumb. 2013-06-17 15:56:09 -07:00
Jordan Sissel
0e4410a1f0 - Switch to using milestone numbers instead of plugin status labels
(LOGSTASH-1137)
- Rename plugin-status doc to plugin-milestones
2013-06-17 10:16:55 -07:00
Jordan Sissel
43a519a7f6 - make plugin statuses milestones instead. (LOGSTASH-1137)
The previous taxonomy confused users due to overloaded meanings of
  'beta' and 'experimental'.
2013-06-17 09:38:34 -07:00
Jordan Sissel
5cbc1aa221 - make SIGHUP configure logging again (causes the logfile to be
reopened)
2013-06-16 22:43:26 -07:00
Jordan Sissel
d97ecf7859 - fix formatting (use >- for text that should flow continuously) 2013-06-13 23:05:17 -07:00
Jordan Sissel
4d03cf4e57 This comment probably breaks the crap out of 'agent' but 'agent2' is the
future.

agent2 should now successfully use the new config parser w/ codec
support.

No 'conditionals' support yet, but I will add that soon.

Rough list of changes:
- try to unify agent2 errors
- make codecs loaded the same way other plugins are (removes extlib,
  woot)
- make default values subject to validation (necessary for codecs)
- some style cleanup
- move more error messages into locales/en.yml
- fix LogStash::Event#to_s to use %{+...}
2013-06-10 18:05:56 -07:00
Jordan Sissel
c8e35fba98 - fix edge case exit status
- add more help text
2013-06-04 13:29:13 -07:00
Jordan Sissel
225e52b2c6 - improve validation reporting
- check to_f and to_i conversions with :number validation
2013-03-29 22:53:36 -07:00
Jordan Sissel
54a6fad11d - Fix logger setup in the new pipeline
- log backtraces from the agent if debug (-vv)
- more friendly error messages
- style tweaks to stdin plugin
- copy parse_config into agent2
- improve pipeline shutdown under agent2
2013-02-08 03:05:42 -08:00
Jordan Sissel
d267d752e6 Start using i18n for user message lookups.
Notable big changes is that I try to offer suggestions as to what might
be wrong. Additionally, for unrecoverable failures, emit a big message
about how this is probably a bug and offer irc/mailing list/etc
2013-02-08 01:04:03 -08:00