franz 2.1.11 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +2 -0
- data/VERSION +1 -1
- data/lib/franz/agg.rb +1 -1
- data/lib/franz/output/device.rb +5 -0
- data/lib/franz/output/http.rb +9 -2
- data/lib/franz/output/kafka.rb +5 -0
- data/lib/franz/output/rabbitmq.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3212bbf41902b0ff5e82c125c017b4f75337219d
|
4
|
+
data.tar.gz: 2d9df298998b543aed11c8468f01efa9a22ab4c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a3ed6849e5cb9d2b42dd5e4f316ff56ac271a7fce20a7744edd0e4e4a9558da0b2607f1f0a30a2320320cf49aa0989104adb6fde655041a9e9720ff18a581b
|
7
|
+
data.tar.gz: 83b8446bbec4d46f24002b5828fa084688ceec37376d6812885df8307b8a26697b259a35c6b28364986078f4d29ed898be006dbb48316e975fdd6714d8629dc6
|
data/Readme.md
CHANGED
@@ -238,6 +238,8 @@ for Chef.
|
|
238
238
|
- Add `FNM_EXTGLOB` flag for better glob matching
|
239
239
|
- Handle `EACCESS` on `IO.read` gracefully
|
240
240
|
- New `HTTP` output (experimental)
|
241
|
+
- Allow for `nil` or `false` multiline configs
|
242
|
+
- Implement missing (yet documented) "tags" feature
|
241
243
|
- Remove default line limit
|
242
244
|
- Allow minimal configs
|
243
245
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.12
|
data/lib/franz/agg.rb
CHANGED
@@ -146,7 +146,7 @@ module Franz
|
|
146
146
|
event: 'capture',
|
147
147
|
raw: event
|
148
148
|
multiline = @ic.config(event[:path])[:multiline] rescue nil
|
149
|
-
|
149
|
+
unless multiline
|
150
150
|
@statz.inc :num_lines
|
151
151
|
enqueue event[:path], event[:line] unless event[:line].empty?
|
152
152
|
else
|
data/lib/franz/output/device.rb
CHANGED
data/lib/franz/output/http.rb
CHANGED
@@ -57,9 +57,16 @@ module Franz
|
|
57
57
|
|
58
58
|
@thread = Thread.new do
|
59
59
|
until @stop
|
60
|
-
event =
|
60
|
+
event = opts[:input].shift
|
61
|
+
|
62
|
+
unless opts[:tags].empty?
|
63
|
+
event['tags'] ||= []
|
64
|
+
event['tags'] += opts[:tags]
|
65
|
+
end
|
66
|
+
|
67
|
+
payload = JSON::generate event
|
61
68
|
@lock.synchronize do
|
62
|
-
enqueue
|
69
|
+
enqueue payload
|
63
70
|
end
|
64
71
|
|
65
72
|
log.trace \
|
data/lib/franz/output/kafka.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: franz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slog
|