logstash-input-log4j 2.0.4-java → 2.0.5-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59d7a0e167ca56a26f1511d4252407c8e72e73d7
4
- data.tar.gz: 6b25563235e2786ba6a56b2e6858379b0369bae6
3
+ metadata.gz: a744182e8713ce8a79baf4b1fc99d14459396d83
4
+ data.tar.gz: 40634d6e3c4ef2f52a5d04f82bdca29c850fe612
5
5
  SHA512:
6
- metadata.gz: 5c526f020ec56d1b5b3ed58ed7269ceb8f1ed676c549501bdf11a5b10770560768bb7fc171f875f38674bd5d730f60c98391776b6af15b1606a9b3f6aaefdc1d
7
- data.tar.gz: 00f33d3ddea2f6d87b3002ae29b0881cc42d15f5df2163871c72ae132ff0ef74bf4bd0752c89cafcb2e404979fe34abf9c10080e5aa2068896c1c2b57457f218
6
+ metadata.gz: 8ba7d212ee8c9bd78d19b7068e3dfd12638283b8e73aafe7fe9b6a9395d5afa2072bb48ab25d6ddcd43740827c74fbf71b458c82c310fc4b55008b289524e52c
7
+ data.tar.gz: 103bf474aed04eea02e3f03bbf64ae53f9d2e15a699bcd5b187e5eed9d725aa3184671bb9a5f4fad6ac233ebb811de52d5a460a569779b9550c2f551ff3e46da
@@ -1,3 +1,7 @@
1
+ ## 2.0.5
2
+ - Fix a spec that was incompatible with the ng pipeline
3
+ ## 2.0.4
4
+ - Bump for LS 2.x compatibility
1
5
  ## 2.0.3
2
6
  - Refactor code to improve test reliability
3
7
  ## 2.0.2
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Logstash Plugin
2
2
 
3
- This is a plugin for [Logstash](https://github.com/elastic/logstash).
3
+ [![Build
4
+ Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-log4j-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-log4j-unit/)
5
+
6
+ This is a plugin for [Logstash](https://github.com/elastic/logstash) to allow it to receive events from the log4j Socket Appender. Note that it only works with log4j 1.x and not with version 2.
4
7
 
5
8
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
9
 
@@ -83,4 +86,4 @@ Programming is not a required skill. Whatever you've seen about open source and
83
86
 
84
87
  It is more important to the community that you are able to contribute.
85
88
 
86
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
89
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -8,7 +8,7 @@ require "socket"
8
8
  require "timeout"
9
9
  require 'logstash-input-log4j_jars'
10
10
 
11
- # Read events over a TCP socket from a Log4j SocketAppender.
11
+ # Read events over a TCP socket from a Log4j SocketAppender. This plugin works only with log4j version 1.x.
12
12
  #
13
13
  # Can either accept connections from clients or connect to a server,
14
14
  # depending on `mode`. Depending on which `mode` is configured,
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-log4j'
4
- s.version = '2.0.4'
4
+ s.version = '2.0.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Read events over a TCP socket from a Log4j SocketAppender"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
@@ -64,7 +64,8 @@ describe LogStash::Inputs::Log4j do
64
64
  expect(subject["path"]).to eq("org.apache.log4j.LayoutTest")
65
65
  expect(subject["priority"]).to eq("INFO")
66
66
  expect(subject["logger_name"]).to eq("org.apache.log4j.LayoutTest")
67
- expect(subject["thread"]).to eq("main")
67
+ expect(subject["thread"]).to be_a(String)
68
+ expect(subject["thread"]).not_to be_empty
68
69
  expect(subject["message"]).to eq("Hello, World")
69
70
  # checks locationInformation is collected, but testing exact values is not meaningful in jruby
70
71
  expect(subject["class"]).not_to be_empty
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-log4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.4.8
100
+ rubygems_version: 2.4.5
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Read events over a TCP socket from a Log4j SocketAppender