fluent-plugin-tcp_mc 0.1.0 → 0.2.0
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/README.md +4 -4
- data/fluent-plugin-tcp_mc.gemspec +1 -1
- data/lib/fluent/plugin/out_tcp_mc.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8df52939c4bb4d2d866eb7cf26ebfbc6a22aec57
|
4
|
+
data.tar.gz: 756844a808fbc3767577976197282da871fd9fe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e11dcc9dea483ee98215bc2afdaa5c3592a380964972c128aea83ae526add23d079961547d9174c511aec333125213d31777bab3484183dbbcc62ddd18d8f7
|
7
|
+
data.tar.gz: 929eb7cffc7b01dca3f1cfbda22b57b793a2fca507e84224dbce5f8155d0d84ee4f41644f78606916d68ee2f27e73cf146e6b1aa7ac4c27fea145d682c26e0fe
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# fluent-plugin-
|
1
|
+
# fluent-plugin-tcp_mc
|
2
2
|
|
3
3
|
[Fluentd](http://fluentd.org/) output to send to generic tcp endpoints
|
4
4
|
|
@@ -11,7 +11,7 @@ The plugin currently only supports JSON output and I think buffering is kinda wo
|
|
11
11
|
### RubyGems
|
12
12
|
|
13
13
|
```
|
14
|
-
$ gem install fluent-plugin-
|
14
|
+
$ gem install fluent-plugin-tcp_mc
|
15
15
|
```
|
16
16
|
|
17
17
|
### Bundler
|
@@ -19,7 +19,7 @@ $ gem install fluent-plugin-tcp_multi
|
|
19
19
|
Add following line to your Gemfile:
|
20
20
|
|
21
21
|
```ruby
|
22
|
-
gem "fluent-plugin-
|
22
|
+
gem "fluent-plugin-tcp_mc"
|
23
23
|
```
|
24
24
|
|
25
25
|
And then execute:
|
@@ -33,7 +33,7 @@ $ bundle
|
|
33
33
|
You can generate configuration template:
|
34
34
|
|
35
35
|
```
|
36
|
-
$ fluent-plugin-format-config output
|
36
|
+
$ fluent-plugin-format-config output tcp_mc
|
37
37
|
```
|
38
38
|
|
39
39
|
You can copy and paste generated documents here.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
require 'fluent/plugin/output'
|
17
17
|
require 'time'
|
18
|
+
require 'yajl'
|
18
19
|
|
19
20
|
module Fluent
|
20
21
|
class Tcp_mcOutput < BufferedOutput
|
@@ -107,7 +108,7 @@ module Fluent
|
|
107
108
|
chunk.msgpack_each do |tag, time, record|
|
108
109
|
next unless record.is_a? Hash
|
109
110
|
#log.debug ("#{record}")
|
110
|
-
sock.write("#{record
|
111
|
+
sock.write("#{Yajl.dump(record)}\n")
|
111
112
|
end
|
112
113
|
ensure
|
113
114
|
sock.close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-tcp_mc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Pippenger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.5.1
|
110
|
+
rubygems_version: 2.5.2.1
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Purpose built plugin for fluentd to send json over tcp.
|