logstash-codec-cef 2.1.2 → 2.1.3

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: d7157aa4d786e3267443b75816d8404f2f20f78e
4
- data.tar.gz: 66364b52b88698ba8dce17b079d3a310e6b0da04
3
+ metadata.gz: 8b22c4b161498ace71c6e04514f5a29f23568efe
4
+ data.tar.gz: dcb9d7735d26d4d9b84d874dc520b5c92b4115fb
5
5
  SHA512:
6
- metadata.gz: 959f5b76ca541f0c26ea8eb352d7f13c4dae890c57f0771566b15417ba061febbc0de84ce27b74bb5bb06ac3a9aca1f9bcc14081a90cccf0ad472a97613cd18a
7
- data.tar.gz: 53cc69368dc249352f80240905f159fb943a54fef1457a321a8c7c21c4b10ae9596b1a3751d54c5ff5f19afce24929f84216075031813963d154a63855c96710
6
+ metadata.gz: 1a2f1432502b0bd23099ec52404ce397067c01c9f8adaeb8db276cbe1b5c12e3cf4f1978db4c99cbc62f409412bf8dc1321ca52a2b3fccd52e3e5d00cf0e8500
7
+ data.tar.gz: 77cddc6c389df9cfae6b3c085d32f9886eb9ec5cbf32e4c5eed91654183b1b44df7bd1ba9164988783d2c69cc3f52a244a8b9340067d5366184a25883250ca85
@@ -1,3 +1,5 @@
1
+ # 2.1.3
2
+ - Switch in-place sub! to sub when extracting `cef_version`. new Logstash Java Event does not support in-place String changes.
1
3
  # 2.1.2
2
4
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
5
  # 2.1.1
@@ -71,7 +71,8 @@ class LogStash::Codecs::CEF < LogStash::Codecs::Base
71
71
  end
72
72
 
73
73
  # Get rid of the CEF bit in the version
74
- event['cef_version'].sub! /^CEF:/, ''
74
+ version = event['cef_version'].sub /^CEF:/, ''
75
+ event['cef_version'] = version
75
76
 
76
77
  # Strip any whitespace from the message
77
78
  if not message.nil? and message.include? '='
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-cef'
4
- s.version = '2.1.2'
4
+ s.version = '2.1.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "CEF codec to parse and encode CEF formated logs"
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"
@@ -158,7 +158,7 @@ describe LogStash::Codecs::CEF do
158
158
  codec.fields = [ "foo" ]
159
159
  event = LogStash::Event.new("foo" => { "bar" => "bar value", "baz" => "baz value" })
160
160
  codec.encode(event)
161
- expect(results.first).to match(/^CEF:0\|Elasticsearch\|Logstash\|1.0\|Logstash\|Logstash\|6\|foo=\{\"bar\":\"bar value\",\"baz\":\"baz value\"\}$/m)
161
+ expect(results.first).to match(/^CEF:0\|Elasticsearch\|Logstash\|1.0\|Logstash\|Logstash\|6\|foo=\{\"ba[rz]\":\"ba[rz] value\",\"ba[rz]\":\"ba[rz] value\"\}$/m)
162
162
  end
163
163
 
164
164
  it "should encode an array value" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-cef
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
@@ -11,33 +11,33 @@ cert_chain: []
11
11
  date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: logstash-core-plugin-api
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
14
20
  requirement: !ruby/object:Gem::Requirement
15
21
  requirements:
16
- - - "~>"
22
+ - - ~>
17
23
  - !ruby/object:Gem::Version
18
24
  version: '1.0'
19
- name: logstash-core-plugin-api
20
25
  prerelease: false
21
26
  type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: logstash-devutils
22
29
  version_requirements: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - "~>"
31
+ - - '>='
25
32
  - !ruby/object:Gem::Version
26
- version: '1.0'
27
- - !ruby/object:Gem::Dependency
33
+ version: '0'
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
30
- - - ">="
36
+ - - '>='
31
37
  - !ruby/object:Gem::Version
32
38
  version: '0'
33
- name: logstash-devutils
34
39
  prerelease: false
35
40
  type: :development
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
41
  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
42
42
  email: info@elastic.co
43
43
  executables: []
@@ -65,12 +65,12 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">="
68
+ - - '>='
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []