fluent-plugin-systemd 1.0.0 → 1.0.1
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 +12 -2
- data/lib/fluent/plugin/in_systemd.rb +0 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6e9aac538e4ec4e1a65dae4873493e2439b8b59
|
4
|
+
data.tar.gz: f6589478860a0b2864929339651005df1732d9b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0efddc0d59ca876d8b7cd356dd9f238b99eb5d6c55cd2fee5ae65e26bceeea9d6f61afbcc1f5b17e1eed891fc30f744a81bd01a7ef475b62db821a1415a6018
|
7
|
+
data.tar.gz: 7613bdc750bab5a6738e27540aa30ce55affa625614c9b848302995ef642adc41250c091f16f1eecd80193940d281e118977416dcf4ada17fe4ca0eccb709340
|
data/README.md
CHANGED
@@ -28,11 +28,11 @@ Join the #plugin-systemd channel on the [Fluentd Slack](http://slack.fluentd.org
|
|
28
28
|
|
29
29
|
Simply use RubyGems:
|
30
30
|
|
31
|
-
gem install fluent-plugin-systemd -v 1.0.
|
31
|
+
gem install fluent-plugin-systemd -v 1.0.1
|
32
32
|
|
33
33
|
or
|
34
34
|
|
35
|
-
td-agent-gem install fluent-plugin-systemd -v 1.0.
|
35
|
+
td-agent-gem install fluent-plugin-systemd -v 1.0.1
|
36
36
|
|
37
37
|
## Upgrading
|
38
38
|
|
@@ -186,6 +186,16 @@ Another strategy would be to use a plugin like [fluent-plugin-concat](https://gi
|
|
186
186
|
* You can use an [offical fluentd docker](https://github.com/fluent/fluentd-docker-image) image as a base, (choose the debian based version, as alpine linux doesn't support systemd).
|
187
187
|
* Bind mount `/var/log/journal` into your container.
|
188
188
|
|
189
|
+
> ### I am seeing lots of logs being generated very rapidly!
|
190
|
+
|
191
|
+
This commonly occurs when a loop is created when fluentd is logging to STDOUT, and the collected logs are then written to the systemd journal. This could happen if you run fluentd as a systemd serivce, or as a docker container with the systemd log driver.
|
192
|
+
|
193
|
+
Workarounds include:
|
194
|
+
|
195
|
+
* Use another fluentd output
|
196
|
+
* Don't read every message from the journal, set some `matches` so you only read the messages you are interested in.
|
197
|
+
* Disable the systemd log driver when you launch your fluentd docker container, e.g. by passing `--log-driver json-file`
|
198
|
+
|
189
199
|
### Example
|
190
200
|
|
191
201
|
For an example of a full working setup including the plugin, take a look at [the fluentd kubernetes daemonset](https://github.com/fluent/fluentd-kubernetes-daemonset)
|
@@ -66,9 +66,6 @@ module Fluent
|
|
66
66
|
# TODO: ruby 2.3
|
67
67
|
@journal.close if @journal # rubocop:disable Style/SafeNavigation
|
68
68
|
@journal = Systemd::Journal.new(path: @path)
|
69
|
-
# make sure initial call to wait doesn't return :invalidate
|
70
|
-
# see https://github.com/ledbettj/systemd-journal/issues/70
|
71
|
-
@journal.wait(0)
|
72
69
|
@journal.filter(*(@matches || @filters))
|
73
70
|
seek
|
74
71
|
true
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 1.3.2
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: 1.3.2
|
103
103
|
description: This is a fluentd input plugin. It reads logs from the systemd journal.
|
104
104
|
email:
|
105
105
|
- edward-robinson@cookpad.com
|