fluent-plugin-systemd 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/lib/fluent/plugin/in_systemd.rb +3 -2
- 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: 698b184013d7951b6323e6ee2267407c1ba7a2fd
|
4
|
+
data.tar.gz: 91cb4508dfc5a60cd5ca421959cb710bcaabcd3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 000a8444497e8a5b3555179f0b182a0144ffdf27f6ee9c540c676e6aad73c911546ce79812c3e289548af26fd7d4e3ae403ca488c7699d14d4bbb79d207f0f28
|
7
|
+
data.tar.gz: 615a1b8451be729f01d3e7a991d1d1130624bca527acc3461ebf67ec5a2724114f35c007eb97faf2f02bd5a34e38ea392bd7487ffbb65d558b95bedc55a7d533
|
data/README.md
CHANGED
@@ -23,6 +23,7 @@ Join the #plugin-systemd channel on the [Fluentd Slack](http://slack.fluentd.org
|
|
23
23
|
|
24
24
|
* The 0.x.x series is developed from this branch (master)
|
25
25
|
* The 0.0.x series (compatible with fluentd v0.12, and td-agent 2) is developed on the [0.0.x branch](https://github.com/reevoo/fluent-plugin-systemd/tree/0.0.x)
|
26
|
+
* The next version is currently under development on the [1.0.0 branch](https://github.com/reevoo/fluent-plugin-systemd/tree/1.0.0) it's progress is tracked [here](https://github.com/reevoo/fluent-plugin-systemd/issues/53)
|
26
27
|
|
27
28
|
## Installation
|
28
29
|
|
@@ -40,7 +41,7 @@ or
|
|
40
41
|
@type systemd
|
41
42
|
tag kube-proxy
|
42
43
|
path /var/log/journal
|
43
|
-
|
44
|
+
matches [{ "_SYSTEMD_UNIT": "kube-proxy.service" }]
|
44
45
|
read_from_head true
|
45
46
|
<storage>
|
46
47
|
@type local
|
@@ -64,8 +65,16 @@ Path to the systemd journal, defaults to `/var/log/journal`
|
|
64
65
|
|
65
66
|
**`filters`**
|
66
67
|
|
67
|
-
|
68
|
-
|
68
|
+
_This parameter name is deprecated and should be renamed to `matches`_
|
69
|
+
|
70
|
+
**`matches`**
|
71
|
+
|
72
|
+
Expects an array of hashes defining desired matches to filter the log
|
73
|
+
messages with. When this property is not specified, this plugin will default to
|
74
|
+
reading all logs from the journal.
|
75
|
+
|
76
|
+
See [matching details](docs/Matching-Details.md) for a more exhaustive
|
77
|
+
description of this property and how to use it.
|
69
78
|
|
70
79
|
**`pos_file`**
|
71
80
|
|
@@ -218,3 +227,4 @@ Many thanks to our fantastic contributors
|
|
218
227
|
* [Jesus Rafael Carrillo](https://github.com/jescarri)
|
219
228
|
* [John Thomas Wile II](https://github.com/jtwile2)
|
220
229
|
* [Kazuhiro Suzuki](https://github.com/ksauzz)
|
230
|
+
* [Joel Gerber](https://github.com/Jitsusama)
|
@@ -15,7 +15,8 @@ module Fluent
|
|
15
15
|
DEFAULT_STORAGE_TYPE = 'local'
|
16
16
|
|
17
17
|
config_param :path, :string, default: '/var/log/journal'
|
18
|
-
config_param :filters, :array, default: []
|
18
|
+
config_param :filters, :array, default: [], deprecated: 'filters has been renamed as matches'
|
19
|
+
config_param :matches, :array, default: nil
|
19
20
|
config_param :read_from_head, :bool, default: false
|
20
21
|
config_param :tag, :string
|
21
22
|
|
@@ -54,7 +55,7 @@ module Fluent
|
|
54
55
|
# make sure initial call to wait doesn't return :invalidate
|
55
56
|
# see https://github.com/ledbettj/systemd-journal/issues/70
|
56
57
|
@journal.wait(0)
|
57
|
-
@journal.filter(
|
58
|
+
@journal.filter(*(@matches || @filters))
|
58
59
|
seek
|
59
60
|
true
|
60
61
|
rescue Systemd::JournalError => e
|
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.0.
|
4
|
+
version: 1.0.0.rc2
|
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-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|