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 +4 -4
- data/.ruby-version +1 -0
- data/README.md +6 -1
- data/circle.yml +4 -4
- data/lib/logstash/filters/docker_container.rb +1 -1
- data/logstash-filter-docker_container.gemspec +2 -2
- data/spec/filters/docker_container_spec.rb +1 -1
- metadata +25 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45bb51cba990c1b00eeaf971bbbc7b2c7ea751c1
|
4
|
+
data.tar.gz: 421dad508f2dcc1c7692f90e4d4e77cdd06ceeeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cf7dbf2198c21ec1c62dde667893bd9661102e3b79942c609267bc1f8135d9a35717c6a2cde74b2d32e63cbcabd09a7ff27905262e670ad0b2bbf4daf79e4c4
|
7
|
+
data.tar.gz: 7057b060735f649233960686d65323466c8b44e224abefbaf3f5da3430b0ed3a911b06dcb6b8f694719397c7ffd406457ca7f78cc8dafba94b8ea087e27ccdf8
|
data/.ruby-version
ADDED
@@ -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
@@ -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
|
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.
|
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", '>=
|
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
|
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.
|
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:
|
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:
|
28
|
-
- - <
|
18
|
+
version: 5.0.0
|
19
|
+
- - "<"
|
29
20
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
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:
|
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.
|
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.
|