fluent-plugin-input-gelf 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/fluent-plugin-input-gelf.gemspec +2 -2
- data/lib/fluent/plugin/in_gelf.rb +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eee1b338888b0ca1ec6f85012c47afbf14266fd4
|
4
|
+
data.tar.gz: 7d0557b52f33d68de6e1469f9e184a96e43de44d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb91d66ad6039147e5f795a9037e61f41541e7f1b0309ff0d0ebcc8ef15f0dbbdc6e2437f24254bbad67cec5c61da7fcf8f7c67cbf3535ff8d7fc5ee19b0f967
|
7
|
+
data.tar.gz: b69d7aa70c1b58b28604c8c3f566197e4ded4928975c6a07d2be38c90a837a908a4c0f9e3b9cbfd55b74b326b1c20df011957a4faeb16f9495ad05e6be003f4f
|
data/.travis.yml
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.license = "MIT"
|
8
8
|
gem.homepage = "https://github.com/MerlinDMC/fluent-plugin-input-gelf"
|
9
9
|
gem.summary = gem.description
|
10
|
-
gem.version = "0.
|
10
|
+
gem.version = "0.2.0"
|
11
11
|
gem.authors = ["Daniel Malon"]
|
12
12
|
gem.email = "daniel.malon@me.com"
|
13
13
|
gem.has_rdoc = false
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.require_paths = ['lib']
|
18
18
|
|
19
19
|
gem.add_runtime_dependency "fluentd"
|
20
|
-
gem.add_runtime_dependency "
|
20
|
+
gem.add_runtime_dependency "gelfd2", ">= 0.3.0"
|
21
21
|
|
22
22
|
gem.add_development_dependency "bundler"
|
23
23
|
gem.add_development_dependency "rake"
|
@@ -13,7 +13,7 @@ module Fluent
|
|
13
13
|
def initialize
|
14
14
|
super
|
15
15
|
require 'fluent/plugin/socket_util'
|
16
|
-
require '
|
16
|
+
require 'gelfd2'
|
17
17
|
end
|
18
18
|
|
19
19
|
desc "The value is the tag assigned to the generated events."
|
@@ -70,7 +70,7 @@ module Fluent
|
|
70
70
|
|
71
71
|
def receive_data(data, addr)
|
72
72
|
begin
|
73
|
-
msg =
|
73
|
+
msg = Gelfd2::Parser.parse(data)
|
74
74
|
rescue => e
|
75
75
|
log.warn 'Gelfd failed to parse a message', error: e.to_s
|
76
76
|
log.warn_backtrace
|
@@ -89,7 +89,7 @@ module Fluent
|
|
89
89
|
time = record.delete('timestamp').to_i if record.key?('timestamp')
|
90
90
|
|
91
91
|
# Postprocess recorded event
|
92
|
-
|
92
|
+
strip_leading_underscore_(record) if @strip_leading_underscore
|
93
93
|
|
94
94
|
emit(time, record)
|
95
95
|
}
|
@@ -117,7 +117,7 @@ module Fluent
|
|
117
117
|
|
118
118
|
private
|
119
119
|
|
120
|
-
def
|
120
|
+
def strip_leading_underscore_(record)
|
121
121
|
record.keys.each { |k|
|
122
122
|
next unless k[0,1] == '_'
|
123
123
|
record[k[1..-1]] = record.delete(k)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-input-gelf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Malon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: gelfd2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.6.8
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: A GELF input plugin for fluentd
|