fluent-plugin-systemd 1.0.4 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 194ee210390aeeb11282e5d7691bb4694d1978fd760abc8eb1ef078864ecc362
4
- data.tar.gz: 8ccbbcff3e50c691a36f6fdaf66122882af8daa0201ff137218aa28018e31f84
3
+ metadata.gz: 9e95e3feb43d74663b14476d96c92a536ecefdc7c32dc9be68d778640c2fe3e1
4
+ data.tar.gz: e45bd0896dd0f6e0df61006a9bfc13426f78c1aa0da2eb0b7d60f129d7040793
5
5
  SHA512:
6
- metadata.gz: 39823bce21570d0b8721e7427589a6b85f811f70d79e9a61b959e6408fff607d73786e1e2d431f912d79892fcf41c892cb4dd6d67ba2a26f9b923f747d2beb05
7
- data.tar.gz: 12355bccdcec5a37420a50f81e295c3778b233ecba77748bf88fcbe4c9d042d519550a26f9143ad98401ff541c1810bceefe0b5ee41f9e196f2c42323e1662d6
6
+ metadata.gz: 94ee7b4de1a4fec10b4951861b28b27a39d554f3788378549e8c5bac3632544f7201b03f26c619fa0135535c88c2a1a483a671e6b739c254fe96b67fb280cb63
7
+ data.tar.gz: 27a1148fca72b0b61f4f90c977aebbe3a9e358e78fa81538c6c04e9cdcf04a0894b99e288ed18f4e5779feb97063ebee72e39c58b958ff3e287923f4b4cc2d71
data/README.md CHANGED
@@ -18,6 +18,10 @@ Join the #plugin-systemd channel on the [Fluentd Slack](http://slack.fluentd.org
18
18
  | > 0.1.0 | >= 0.14.11, < 2 | 3 | >= 2.1 |
19
19
  | 0.0.x | ~> 0.12.0 | 2 | >= 1.9 |
20
20
 
21
+ |fluent-plugin-systemd|fluentd|fluent-package|ruby|
22
+ |----|----|----|----|
23
+ | >= 1.1.0 | >= 0.14.11, < 2 | 5 | >= 3.0 |
24
+
21
25
  * The 1.x.x series is developed from this branch (master)
22
26
  * The 0.0.x series (compatible with fluentd v0.12, and td-agent 2) is maintained on the [0.0.x branch](https://github.com/reevoo/fluent-plugin-systemd/tree/0.0.x)
23
27
 
@@ -212,13 +216,13 @@ On Debian or Ubuntu you might need to install the libsystemd0 package:
212
216
  apt-get install libsystemd0
213
217
  ```
214
218
 
215
- On CentOS or RHEL you might need to install the systemd package:
219
+ On AlmaLinux or RHEL you might need to install the systemd package:
216
220
 
217
221
  ```
218
222
  yum install -y systemd
219
223
  ```
220
224
 
221
- If you want to do this in a CentOS docker image you might first need to remove the `fakesystemd` package.
225
+ If you want to do this in a AlmaLinux docker image you might first need to remove the `fakesystemd` package.
222
226
 
223
227
  ```
224
228
  yum remove -y fakesystemd
@@ -263,3 +267,4 @@ Many thanks to our fantastic contributors
263
267
  * [Richard Megginson](https://github.com/richm)
264
268
  * [Sadayuki Furuhashi](https://github.com/frsyuki)
265
269
  * [Seiichi Nishikata](https://github.com/neko-neko)
270
+ * [Kentaro Hayashi](https://github.com/kenhys)
@@ -21,7 +21,7 @@ require 'fluent/plugin/systemd/entry_mutator'
21
21
  module Fluent
22
22
  module Plugin
23
23
  # Fluentd plugin for reading from the systemd journal
24
- class SystemdInput < Input
24
+ class SystemdInput < Input # rubocop:disable Metrics/ClassLength
25
25
  Fluent::Plugin.register_input('systemd', self)
26
26
 
27
27
  helpers :timer, :storage
@@ -63,6 +63,10 @@ module Fluent
63
63
 
64
64
  def shutdown
65
65
  @running = false
66
+ @journal&.close
67
+ @journal = nil
68
+ @pos_storage = nil
69
+ @mutator = nil
66
70
  super
67
71
  end
68
72
 
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
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-24 00:00:00.000000000 Z
11
+ date: 2024-09-11 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: 1.4.2
95
+ version: 2.0.0
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: 1.4.2
102
+ version: 2.0.0
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
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.2.15
134
+ rubygems_version: 3.5.11
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Input plugin to read from systemd journal.