franz 2.1.14 → 2.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 +13 -9
- data/VERSION +1 -1
- data/bin/franz +0 -2
- data/lib/franz/agg.rb +6 -6
- data/lib/franz/output/device.rb +1 -1
- data/lib/franz/output/http.rb +1 -1
- data/lib/franz/output/kafka.rb +1 -1
- data/lib/franz/output/rabbitmq.rb +1 -1
- data/lib/franz/tail.rb +3 -3
- data/lib/franz/watch.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc7a5d6d178dc1e69c3bae41689803b001818b91
|
|
4
|
+
data.tar.gz: e95d2d372a2babcef729283e16065a6bcbff0d79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aefde13b6cdf69d0bdda0ab5188762d478a291adb717e854d5532c2b2cb71f4f1e1dcc616eb537ce1f85d738f2da9160c6d3b10eae7005570743c583c166ada2
|
|
7
|
+
data.tar.gz: 992e197e977ac5b80117c01c25d9145661463a2a6e0f8d19c00136211f01485eccf96dbbe6c66e423a2df3a53b58cbe1640651bcd09c3794a16b0c319fd5d4b7
|
data/Readme.md
CHANGED
|
@@ -63,7 +63,7 @@ You can build a gem from this repository, or use RubyGems:
|
|
|
63
63
|
Just call for help!
|
|
64
64
|
|
|
65
65
|
$ franz --help
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
.--.,
|
|
68
68
|
,--.' \ __ ,-. ,---, ,----,
|
|
69
69
|
| | /\/,' ,'/ /| ,-+-. / | .' .`|
|
|
@@ -75,17 +75,16 @@ Just call for help!
|
|
|
75
75
|
| | | | , ; / / ,. | | | |--' ./__; .'
|
|
76
76
|
| : \ ---' ; : .' \| |/ ; | .'
|
|
77
77
|
| |,' | , .-./'---' `---'
|
|
78
|
-
`--' `--`---' v2.
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
`--' `--`---' v2.2.0
|
|
79
|
+
|
|
80
|
+
|
|
81
81
|
Aggregate log file events and send them elsewhere
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
Usage: franz [<options>]
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
Options:
|
|
86
86
|
--config, -c <s>: Configuration file to use
|
|
87
87
|
--debug, -d: Enable debugging output
|
|
88
|
-
--trace, -t: Enable trace output
|
|
89
88
|
--log, -l <s>: Log to file, not STDOUT
|
|
90
89
|
--version, -v: Print version and exit
|
|
91
90
|
--help, -h: Show this message
|
|
@@ -211,9 +210,9 @@ At Blue Jeans, we deploy Franz with Upstart. Here's a minimal config:
|
|
|
211
210
|
|
|
212
211
|
#!upstart
|
|
213
212
|
description "franz"
|
|
214
|
-
|
|
213
|
+
|
|
215
214
|
console log
|
|
216
|
-
|
|
215
|
+
|
|
217
216
|
start on startup
|
|
218
217
|
stop on shutdown
|
|
219
218
|
respawn
|
|
@@ -225,6 +224,11 @@ for Chef.
|
|
|
225
224
|
|
|
226
225
|
### Changelog
|
|
227
226
|
|
|
227
|
+
### v2.2
|
|
228
|
+
|
|
229
|
+
- Updated dependencies
|
|
230
|
+
- No more `TRACE`-level logging (demoted to `DEBUG`)
|
|
231
|
+
|
|
228
232
|
#### v2.1
|
|
229
233
|
|
|
230
234
|
- Self-contained packages for OS X and Linux thanks to [Traveling Ruby](http://phusion.github.io/traveling-ruby) and [FPM](https://github.com/jordansissel/fpm)
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.2.0
|
data/bin/franz
CHANGED
|
@@ -23,7 +23,6 @@ parser = Trollop::Parser.new do
|
|
|
23
23
|
EOS
|
|
24
24
|
opt :config, 'Configuration file to use', type: :string, required: true
|
|
25
25
|
opt :debug, 'Enable debugging output', default: false
|
|
26
|
-
opt :trace, 'Enable trace output', default: false
|
|
27
26
|
opt :log, 'Log to file, not STDOUT', type: :string, default: nil
|
|
28
27
|
end
|
|
29
28
|
|
|
@@ -40,7 +39,6 @@ config = Franz::Config.new opts[:config]
|
|
|
40
39
|
# Set up Slog to send pretty, colored output to STDOUT, compact to FILE
|
|
41
40
|
level = :info
|
|
42
41
|
level = :debug if opts[:debug]
|
|
43
|
-
level = :trace if opts[:trace]
|
|
44
42
|
device = opts[:log] || $stdout
|
|
45
43
|
colorize, prettify = false, false
|
|
46
44
|
colorize, prettify = true, true if device.tty? rescue false
|
data/lib/franz/agg.rb
CHANGED
|
@@ -90,7 +90,7 @@ module Franz
|
|
|
90
90
|
|
|
91
91
|
def enqueue path, message
|
|
92
92
|
if @ic.drop? path, message
|
|
93
|
-
log.
|
|
93
|
+
log.debug \
|
|
94
94
|
event: 'dropped',
|
|
95
95
|
file: path,
|
|
96
96
|
message: message
|
|
@@ -98,7 +98,7 @@ module Franz
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
unless @ic.keep? path, message
|
|
101
|
-
log.
|
|
101
|
+
log.debug \
|
|
102
102
|
event: 'unkept',
|
|
103
103
|
file: path,
|
|
104
104
|
message: message
|
|
@@ -107,14 +107,14 @@ module Franz
|
|
|
107
107
|
|
|
108
108
|
t = @ic.type path
|
|
109
109
|
if t.nil?
|
|
110
|
-
log.
|
|
110
|
+
log.debug \
|
|
111
111
|
event: 'enqueue skipped',
|
|
112
112
|
file: path,
|
|
113
113
|
message: message
|
|
114
114
|
return
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
log.
|
|
117
|
+
log.debug \
|
|
118
118
|
event: 'enqueue',
|
|
119
119
|
file: path,
|
|
120
120
|
message: message
|
|
@@ -142,7 +142,7 @@ module Franz
|
|
|
142
142
|
|
|
143
143
|
def capture
|
|
144
144
|
event = tail_events.shift
|
|
145
|
-
log.
|
|
145
|
+
log.debug \
|
|
146
146
|
event: 'capture',
|
|
147
147
|
raw: event
|
|
148
148
|
multiline = @ic.config(event[:path])[:multiline] rescue nil
|
|
@@ -153,7 +153,7 @@ module Franz
|
|
|
153
153
|
lock[event[:path]].synchronize do
|
|
154
154
|
size = buffer.size(event[:path])
|
|
155
155
|
if size > @buffer_limit
|
|
156
|
-
log.
|
|
156
|
+
log.debug \
|
|
157
157
|
event: 'buffer overflow',
|
|
158
158
|
file: event[:path],
|
|
159
159
|
size: size,
|
data/lib/franz/output/device.rb
CHANGED
data/lib/franz/output/http.rb
CHANGED
data/lib/franz/output/kafka.rb
CHANGED
data/lib/franz/tail.rb
CHANGED
|
@@ -77,7 +77,7 @@ module Franz
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
def read path, size
|
|
80
|
-
log.
|
|
80
|
+
log.debug \
|
|
81
81
|
event: 'read',
|
|
82
82
|
file: path,
|
|
83
83
|
size: size
|
|
@@ -173,7 +173,7 @@ module Franz
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
def close path
|
|
176
|
-
log.
|
|
176
|
+
log.debug event: 'close', file: path
|
|
177
177
|
tail_events.push path: path, line: buffer[path].flush
|
|
178
178
|
@nil_read.delete path
|
|
179
179
|
@cursors[path] = 0
|
|
@@ -182,7 +182,7 @@ module Franz
|
|
|
182
182
|
|
|
183
183
|
def handle event
|
|
184
184
|
path, size = event[:path], event[:size]
|
|
185
|
-
log.
|
|
185
|
+
log.debug \
|
|
186
186
|
event: 'handle',
|
|
187
187
|
raw: event
|
|
188
188
|
case event[:name]
|
data/lib/franz/watch.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.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Clemmer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: slog
|
|
@@ -16,56 +16,56 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: '2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: '2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bunny
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 2
|
|
33
|
+
version: '2'
|
|
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: 2
|
|
40
|
+
version: '2'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: trollop
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.1
|
|
47
|
+
version: '2.1'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.1
|
|
54
|
+
version: '2.1'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: colorize
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.7
|
|
61
|
+
version: '0.7'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.7
|
|
68
|
+
version: '0.7'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: deep_merge
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -184,4 +184,3 @@ test_files:
|
|
|
184
184
|
- test/test_franz_tail.rb
|
|
185
185
|
- test/test_franz_watch.rb
|
|
186
186
|
- test/test_performance.rb
|
|
187
|
-
has_rdoc:
|