logstash-filter-docker_metadata 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dockerTest.sh +1 -0
- data/lib/logstash/filters/docker_metadata.rb +3 -3
- data/logstash-filter-docker_metadata.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37853fad6b429426f7b2d0501f260336824ae7a
|
4
|
+
data.tar.gz: 1a73e1cffb24ced76ea68f8861d470fdb0ec0cce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f8dab41edbe9427f367a9b709ea4537aed950c21e4cb363563c90fc0a9ebf18efd7271faf116519f04f448bdda7146f3e946c52899c5aea460c6acf6b2e778c
|
7
|
+
data.tar.gz: 8f132172396fa9a5d367d5e72ca93025480875131e87df499dd81a88ba8965797bb396f06d40fc451fe392ec33c44f1d36428471faca5de3d9b7fc12dfac502a
|
data/dockerTest.sh
CHANGED
@@ -63,9 +63,9 @@ class LogStash::Filters::DockerMetadata < LogStash::Filters::Base
|
|
63
63
|
public
|
64
64
|
def filter(event)
|
65
65
|
|
66
|
-
# get container id from
|
67
|
-
if event["
|
68
|
-
container_id = event["
|
66
|
+
# get container id from path field
|
67
|
+
if event["path"]
|
68
|
+
container_id = event["path"].match(@container_id_regexp_compiled)
|
69
69
|
end
|
70
70
|
|
71
71
|
# if it failed fall back to message field
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-docker_metadata'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.3'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This filter add docker metadata to messages that contain a docker ID. It's heavily inspired from https://github.com/fabric8io/fluent-plugin-docker_metadata_filter."
|
6
6
|
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"
|