fluent-plugin-systemd 0.1.1.pre2 → 0.1.1.pre3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a98a79b5d7bfa6dde174c9c0d8352407b07d37d
|
4
|
+
data.tar.gz: f6ddce5e5522d96460b4794fe1646bcc6f7837a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 378a0319305a350c770213d8090550bd808f664bef08766bb2bc0c03bcb69e3aad0244d5246f99feba606ae0159dcb32f579f43a673d5dc435cdcf77f199462f
|
7
|
+
data.tar.gz: 296c1f33d19d5c4adcd68354330bb1f8ca9c13e0d16b128c1828a8d252f2aea3b2f1300689a83d607212a527d0681579f5ba052e0b43b63aa010e844bfdaa125
|
data/Gemfile.lock
CHANGED
@@ -19,6 +19,7 @@ module Fluent
|
|
19
19
|
def configure(conf)
|
20
20
|
super
|
21
21
|
@pos_writer = PosWriter.new(@pos_file)
|
22
|
+
init_journal
|
22
23
|
end
|
23
24
|
|
24
25
|
def start
|
@@ -36,6 +37,9 @@ module Fluent
|
|
36
37
|
|
37
38
|
def init_journal
|
38
39
|
@journal = Systemd::Journal.new(path: @path)
|
40
|
+
# make sure initial call to wait doesn't return :invalidate
|
41
|
+
# see https://github.com/ledbettj/systemd-journal/issues/70
|
42
|
+
@journal.wait(0)
|
39
43
|
@journal.filter(*@filters)
|
40
44
|
seek
|
41
45
|
end
|
@@ -66,8 +70,7 @@ module Fluent
|
|
66
70
|
end
|
67
71
|
|
68
72
|
def run
|
69
|
-
init_journal
|
70
|
-
Thread.current.abort_on_exception = true
|
73
|
+
init_journal if @journal.wait(0) == :invalidate
|
71
74
|
watch do |entry|
|
72
75
|
begin
|
73
76
|
router.emit(@tag, Fluent::EventTime.from_time(entry.realtime_timestamp), formatted(entry))
|
@@ -75,7 +78,6 @@ module Fluent
|
|
75
78
|
log.error("Exception emitting record: #{e}")
|
76
79
|
end
|
77
80
|
end
|
78
|
-
@pos_writer.sync
|
79
81
|
end
|
80
82
|
|
81
83
|
def formatted(entry)
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-systemd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- pkg/fluent-plugin-systemd-0.0.6.gem
|
122
122
|
- pkg/fluent-plugin-systemd-0.1.0.gem
|
123
123
|
- pkg/fluent-plugin-systemd-0.1.1.pre.gem
|
124
|
+
- pkg/fluent-plugin-systemd-0.1.1.pre2.gem
|
124
125
|
homepage: https://github.com/reevoo/fluent-plugin-systemd
|
125
126
|
licenses:
|
126
127
|
- MIT
|