fluent-plugin-syslog 0.1.17 → 0.1.18
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 +4 -3
- data/fluent-plugin-syslog.gemspec +1 -1
- data/lib/fluent/plugin/out_syslog.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b06c656eeafbdc84939b354ea13beb4e1c40e47e269594e2a40d5b2fb4352873
|
4
|
+
data.tar.gz: 7b66543fdaa72ec0446b0b2959f54ddc31df0ff326ad9f582d8d9a7bf1ddab5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec31328a2feb3851ce8ed024dd980d947d95880ce4e64064cbd7e5f9b905734e625d2939aa7fd069de8f4ba6d17d495220c9d02cde3b27e583e466092fb53c2
|
7
|
+
data.tar.gz: 85ce188dfe5343da19869926efd45dae0435dc4762e3af9ff5dd08fd71fadffbb5310f3a87ee657e943c0436a65a691388da7a8c5fdb7d18b27505112c2ad6da
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ gem install fluent-plugin-syslog
|
|
18
18
|
|
19
19
|
This is a buffered output plugin for Fluentd that's configured to send logs to Syslog.
|
20
20
|
|
21
|
-
Each log line will arrive in
|
21
|
+
Each log line will arrive in Syslog with 2 payloads: the json representation of the fluent record and the data from the syslog wrapper.
|
22
22
|
|
23
23
|
Data from the syslog wrapper includes:
|
24
24
|
```
|
@@ -45,11 +45,12 @@ Also, if you set `parse_json` to true, as is shown in the example above, then th
|
|
45
45
|
### Advanced Configuration
|
46
46
|
This plugin inherits a few useful config parameters from Fluent's `BufferedOutput` class.
|
47
47
|
|
48
|
-
Parameters for flushing the buffer, based on size and time, are `buffer_chunk_limit` and `flush_interval`, respectively. This plugin overrides the inherited default `flush_interval` to `1`, causing the fluent buffer to flush to
|
48
|
+
Parameters for flushing the buffer, based on size and time, are `buffer_chunk_limit` and `flush_interval`, respectively. This plugin overrides the inherited default `flush_interval` to `1`, causing the fluent buffer to flush to Syslog every second.
|
49
49
|
|
50
|
-
If the plugin fails to write to
|
50
|
+
If the plugin fails to write to Syslog for any reason, the log message will be put back in Fluent's buffer and retried. Retrying can be tuned and inherits a default configuration where `retry_wait` is set to `1` second and `retry_limit` is set to `17` attempts.
|
51
51
|
|
52
52
|
If you want to change any of these parameters simply add them to the match stanza. For example, to flush the buffer every 60 seconds and stop retrying after 2 attempts, set something like:
|
53
|
+
|
53
54
|
```xml
|
54
55
|
<match whatever.*>
|
55
56
|
@type syslog
|
@@ -11,7 +11,7 @@ module Fluent
|
|
11
11
|
# if syslog_token left empty in fluent config, it will throw Fluent::ConfigError
|
12
12
|
config_param :syslog_token, :string
|
13
13
|
config_param :syslog_tag, :string, default: nil
|
14
|
-
config_param :syslog_hostname, :string, default:
|
14
|
+
config_param :syslog_hostname, :string, default: ENV['HOSTNAME']
|
15
15
|
config_param :syslog_app, :string, default: nil
|
16
16
|
config_param :syslog_host, :string, default: 'localhost'
|
17
17
|
config_param :syslog_port, :integer, default: 6514
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|