fluent-plugin-gelf-best 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/fluent-plugin-gelf-best.gemspec +1 -1
- data/lib/fluent/plugin/formatter_gelf.rb +3 -1
- data/lib/fluent/plugin/gelf_plugin_util.rb +3 -0
- data/lib/fluent/plugin/out_gelf.rb +3 -1
- data/lib/fluent-plugin-gelf-best/version.rb +1 -1
- metadata +9 -10
- data/certs/oss@hotschedules.com.cert +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a52f6ee827886a2037e01355541bc387a6bc057a9f1970801fe29c259fa0ac7e
|
4
|
+
data.tar.gz: e7e605395d0d741227ecbb8baa94fdfc091374c1a7e8ad3329581b211b74939d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5afa18f1abaac29f41fbf61989e91c9dc59411567793d8f7f61aa1e6e8fce55fa4345f980338fea9ef54c9d07b2d4b74b12c8441e936d4c8331ba3daa9fde4b5
|
7
|
+
data.tar.gz: 5b7737f5468e6dfe9c9704473af10848d57b993d4cbd7699e6bdd8692f59e877fc5b3d6edf4161531ab6b3e4bf8484a098cd8b3ae647e0c963f92f5abbd14ede
|
data/.gitignore
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_runtime_dependency "fluentd", ">=1.0.0"
|
21
|
-
spec.add_runtime_dependency "gelf", ">=
|
21
|
+
spec.add_runtime_dependency "gelf", ">= 3.1.0"
|
22
22
|
spec.add_development_dependency "test-unit"
|
23
23
|
spec.add_development_dependency "rake"
|
24
24
|
end
|
@@ -16,6 +16,7 @@ module Fluent
|
|
16
16
|
|
17
17
|
config_param :use_record_host, :bool, :default => true
|
18
18
|
config_param :add_msec_time, :bool, :default => false
|
19
|
+
config_param :max_bytes, :integer, :default => 32000
|
19
20
|
|
20
21
|
def configure(conf)
|
21
22
|
super(conf)
|
@@ -29,7 +30,8 @@ module Fluent
|
|
29
30
|
tag,time,record,
|
30
31
|
{
|
31
32
|
:use_record_host => @use_record_host,
|
32
|
-
:add_msec_time => @add_msec_time
|
33
|
+
:add_msec_time => @add_msec_time,
|
34
|
+
:max_bytes => @max_bytes
|
33
35
|
}
|
34
36
|
)
|
35
37
|
|
@@ -36,6 +36,9 @@ module Fluent
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def process_record_entry(k, v, conf, gelfentry)
|
39
|
+
# Truncate values longer than max_bytes
|
40
|
+
v = (v.respond_to?(:bytesize) && v.bytesize > conf[:max_bytes]) ? "#{v.byteslice(0, conf[:max_bytes] - 3)}..." : v
|
41
|
+
|
39
42
|
case k
|
40
43
|
when 'host', 'hostname'
|
41
44
|
return {'host' => (conf[:use_record_host] ? v : gelfentry['_host'] = v)}
|
@@ -10,6 +10,7 @@ module Fluent
|
|
10
10
|
|
11
11
|
config_param :use_record_host, :bool, :default => false
|
12
12
|
config_param :add_msec_time, :bool, :default => false
|
13
|
+
config_param :max_bytes, :integer, :default => 32000
|
13
14
|
config_param :host, :string, :default => nil
|
14
15
|
config_param :port, :integer, :default => 12201
|
15
16
|
config_param :protocol, :string, :default => 'udp'
|
@@ -87,7 +88,8 @@ module Fluent
|
|
87
88
|
tag,timestamp,record,
|
88
89
|
{
|
89
90
|
:use_record_host => @use_record_host,
|
90
|
-
:add_msec_time => @add_msec_time
|
91
|
+
:add_msec_time => @add_msec_time,
|
92
|
+
:max_bytes => @max_bytes
|
91
93
|
}
|
92
94
|
).to_msgpack
|
93
95
|
rescue Exception => e
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-gelf-best
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Yamauchi
|
8
8
|
- Eric Searcy
|
9
9
|
- Bartosz Michaliewicz
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 3.1.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 3.1.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: test-unit
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
|
-
description:
|
71
|
+
description:
|
72
72
|
email:
|
73
73
|
- bartosz.michalkiewicz@outlook.com
|
74
74
|
executables: []
|
@@ -80,7 +80,6 @@ files:
|
|
80
80
|
- LICENSE
|
81
81
|
- README.md
|
82
82
|
- Rakefile
|
83
|
-
- certs/oss@hotschedules.com.cert
|
84
83
|
- fluent-plugin-gelf-best.gemspec
|
85
84
|
- lib/fluent-plugin-gelf-best/version.rb
|
86
85
|
- lib/fluent/plugin/formatter_gelf.rb
|
@@ -90,7 +89,7 @@ homepage: https://github.com/bmichalkiewicz/fluent-plugin-gelf-best
|
|
90
89
|
licenses:
|
91
90
|
- Apache-2.0
|
92
91
|
metadata: {}
|
93
|
-
post_install_message:
|
92
|
+
post_install_message:
|
94
93
|
rdoc_options: []
|
95
94
|
require_paths:
|
96
95
|
- lib
|
@@ -105,8 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
104
|
- !ruby/object:Gem::Version
|
106
105
|
version: '0'
|
107
106
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
109
|
-
signing_key:
|
107
|
+
rubygems_version: 3.4.20
|
108
|
+
signing_key:
|
110
109
|
specification_version: 4
|
111
110
|
summary: Sends Fluentd events Graylog2 by GELF
|
112
111
|
test_files: []
|
@@ -1,25 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIELzCCAxGgAwIBAgIJAMOoRmNuvAZcMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYD
|
3
|
-
VQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5j
|
4
|
-
aXNjbzEVMBMGA1UECgwMSG90c2NoZWR1bGVzMQ4wDAYDVQQLDAVJbmZyYTEfMB0G
|
5
|
-
A1UEAwwWaW5mcmEuaG90c2NoZWR1bGVzLmNvbTEjMCEGCSqGSIb3DQEJARYUb3Nz
|
6
|
-
QGhvdHNjaGVkdWxlcy5jb20wHhcNMTcwMjE4MDA1NDU4WhcNMjEwMjE4MDA1NDU4
|
7
|
-
WjCBpzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFjAUBgNVBAcM
|
8
|
-
DVNhbiBGcmFuY2lzY28xFTATBgNVBAoMDEhvdHNjaGVkdWxlczEOMAwGA1UECwwF
|
9
|
-
SW5mcmExHzAdBgNVBAMMFmluZnJhLmhvdHNjaGVkdWxlcy5jb20xIzAhBgkqhkiG
|
10
|
-
9w0BCQEWFG9zc0Bob3RzY2hlZHVsZXMuY29tMIIBKDANBgkqhkiG9w0BAQEFAAOC
|
11
|
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