logstash-filter-docker_container 0.1.1 → 0.2.1

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: b2cc55c3d6f9e8078a710db5fbd901b297ddd237
4
- data.tar.gz: 949d74ea2a51e4f91cd8cf304782ad233c3f9244
3
+ metadata.gz: 45bb51cba990c1b00eeaf971bbbc7b2c7ea751c1
4
+ data.tar.gz: 421dad508f2dcc1c7692f90e4d4e77cdd06ceeeb
5
5
  SHA512:
6
- metadata.gz: 3dde8958c591688700178a63c40ae05496f1bd549e14416be6f975ee1953198de5ef5c6eaf1e88cb8546ef2b6f189aeb10ac371fdc9ea1a76c62d8c665b8cd74
7
- data.tar.gz: 4422d701531969609f71dfa0453250bebc6e31304f3ec3ae0fa2cb0a6618576e7b8e80935ede591e324579c4f376d9c63e082964ab42ccdea39064566d1c2f43
6
+ metadata.gz: 0cf7dbf2198c21ec1c62dde667893bd9661102e3b79942c609267bc1f8135d9a35717c6a2cde74b2d32e63cbcabd09a7ff27905262e670ad0b2bbf4daf79e4c4
7
+ data.tar.gz: 7057b060735f649233960686d65323466c8b44e224abefbaf3f5da3430b0ed3a911b06dcb6b8f694719397c7ffd406457ca7f78cc8dafba94b8ea087e27ccdf8
@@ -0,0 +1 @@
1
+ jruby-1.7.27
data/README.md CHANGED
@@ -1,3 +1,8 @@
1
+
2
+ This is a Logstash filter plugin that resolves Docker container IDs into the container's name.
3
+
4
+ [![Gem](https://img.shields.io/gem/v/logstash-filter-docker_container.svg)](https://rubygems.org/gems/logstash-filter-docker_container)
5
+
1
6
  # Docker Container Logstash Filter Plugin
2
7
 
3
8
  This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
@@ -83,4 +88,4 @@ Programming is not a required skill. Whatever you've seen about open source and
83
88
 
84
89
  It is more important to the community that you are able to contribute.
85
90
 
86
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
91
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
data/circle.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  machine:
2
- ruby:
3
- version: jruby-1.7.19
4
-
2
+ java:
3
+ version: openjdk8
4
+
5
5
  test:
6
6
  post:
7
7
  - bundle install
@@ -11,4 +11,4 @@ deployment:
11
11
  publish:
12
12
  branch: master
13
13
  commands:
14
- - ./gem_publish.sh
14
+ - ./gem_publish.sh
@@ -26,7 +26,7 @@ class LogStash::Filters::DockerContainer < LogStash::Filters::Base
26
26
  return unless filter? event
27
27
 
28
28
  @match.each { |in_field,out_field|
29
- event[out_field] = resolve_from(event[in_field])
29
+ event.set(out_field, resolve_from(event.get(in_field)))
30
30
  }
31
31
 
32
32
  filter_matched(event)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-docker_container'
3
- s.version = '0.1.1'
3
+ s.version = '0.2.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Resolves Docker container IDs into the container's name."
6
6
  s.description = "With Docker's syslog log-driver the log entries contain just container ID, but seeing the name is even better"
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
19
19
 
20
20
  # Gem dependencies
21
- s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
21
+ s.add_runtime_dependency "logstash-core", '>= 5.0.0', '< 5.6.0'
22
22
  s.add_development_dependency 'logstash-devutils'
23
23
  end
@@ -31,7 +31,7 @@ describe LogStash::Filters::DockerContainer do
31
31
  sample([{'seq' => 1, 'container_id' => 'bd30193a3b9d'}, {'seq' => 2, 'container_id' => 'bd30193a3b9d'}]) do
32
32
  subject.each do |e|
33
33
  expect(e).to include('container_name')
34
- expect(e['container_name']).to eq('/logstash')
34
+ expect(e.get('container_name')).to eq('/logstash')
35
35
  end
36
36
  end
37
37
  end
metadata CHANGED
@@ -1,56 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-docker_container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Bourne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2017-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 1.4.0
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: 2.0.0
23
14
  requirement: !ruby/object:Gem::Requirement
24
15
  requirements:
25
- - - '>='
16
+ - - ">="
26
17
  - !ruby/object:Gem::Version
27
- version: 1.4.0
28
- - - <
18
+ version: 5.0.0
19
+ - - "<"
29
20
  - !ruby/object:Gem::Version
30
- version: 2.0.0
21
+ version: 5.6.0
22
+ name: logstash-core
31
23
  prerelease: false
32
24
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: logstash-devutils
35
25
  version_requirements: !ruby/object:Gem::Requirement
36
26
  requirements:
37
- - - '>='
27
+ - - ">="
38
28
  - !ruby/object:Gem::Version
39
- version: '0'
29
+ version: 5.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 5.6.0
33
+ - !ruby/object:Gem::Dependency
40
34
  requirement: !ruby/object:Gem::Requirement
41
35
  requirements:
42
- - - '>='
36
+ - - ">="
43
37
  - !ruby/object:Gem::Version
44
38
  version: '0'
39
+ name: logstash-devutils
45
40
  prerelease: false
46
41
  type: :development
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
47
  description: With Docker's syslog log-driver the log entries contain just container ID, but seeing the name is even better
48
48
  email: itzgeoff@gmail.com
49
49
  executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
- - .gitignore
53
+ - ".gitignore"
54
+ - ".ruby-version"
54
55
  - CONTRIBUTORS
55
56
  - DEVELOPER.md
56
57
  - Gemfile
@@ -77,17 +78,17 @@ require_paths:
77
78
  - lib
78
79
  required_ruby_version: !ruby/object:Gem::Requirement
79
80
  requirements:
80
- - - '>='
81
+ - - ">="
81
82
  - !ruby/object:Gem::Version
82
83
  version: '0'
83
84
  required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  requirements:
85
- - - '>='
86
+ - - ">="
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
90
  rubyforge_project:
90
- rubygems_version: 2.4.5
91
+ rubygems_version: 2.4.8
91
92
  signing_key:
92
93
  specification_version: 4
93
94
  summary: Resolves Docker container IDs into the container's name.