fluent-plugin-systemd 0.0.8 → 0.0.9
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 +2 -2
- data/lib/fluent/plugin/in_systemd.rb +6 -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: 68d94f187b7d98175e4207ec4cd4df9cd6c719f8
|
|
4
|
+
data.tar.gz: a90a29a34e4fffa5f86fa9eb7b55dfb73475c04d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cd9a9f31c8621a67aab98afffdf9d07bc33eb46bdf83c767e1784ab0e5a6200b7779d60ece513a7a6f6500ea62d333fbe1075d0ba42fa02e1f69bac21e418fc
|
|
7
|
+
data.tar.gz: 2a47373f7b2e52329441713a112bda2364f5710d8301cd2a845f7c436c63dc6855d41d8c42cf554f01b2bbc327123fa25b19a1c998db4725b213fb2d57edb077
|
data/README.md
CHANGED
|
@@ -26,11 +26,11 @@ if you are using fluentd v0.14 for the latest and greatest features
|
|
|
26
26
|
|
|
27
27
|
Simply use RubyGems:
|
|
28
28
|
|
|
29
|
-
gem install fluent-plugin-systemd -v 0.0.
|
|
29
|
+
gem install fluent-plugin-systemd -v 0.0.9
|
|
30
30
|
|
|
31
31
|
or
|
|
32
32
|
|
|
33
|
-
td-agent-gem install fluent-plugin-systemd -v 0.0.
|
|
33
|
+
td-agent-gem install fluent-plugin-systemd -v 0.0.9
|
|
34
34
|
|
|
35
35
|
## Configuration
|
|
36
36
|
|
|
@@ -85,7 +85,12 @@ module Fluent
|
|
|
85
85
|
while @running
|
|
86
86
|
init_journal if @journal.wait(0) == :invalidate
|
|
87
87
|
while @journal.move_next && @running
|
|
88
|
-
|
|
88
|
+
begin
|
|
89
|
+
yield @journal.current_entry
|
|
90
|
+
rescue Systemd::JournalError => e
|
|
91
|
+
log.warn("Error Parsing Journal: #{e.class}: #{e.message}")
|
|
92
|
+
next
|
|
93
|
+
end
|
|
89
94
|
@pos_writer.update(@journal.cursor)
|
|
90
95
|
end
|
|
91
96
|
# prevent a loop of death
|
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.0.
|
|
4
|
+
version: 0.0.9
|
|
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-
|
|
11
|
+
date: 2017-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
125
125
|
version: '0'
|
|
126
126
|
requirements: []
|
|
127
127
|
rubyforge_project:
|
|
128
|
-
rubygems_version: 2.
|
|
128
|
+
rubygems_version: 2.5.2.1
|
|
129
129
|
signing_key:
|
|
130
130
|
specification_version: 4
|
|
131
131
|
summary: Input plugin to read from systemd journal.
|