fluent-plugin-syslog-d 0.0.2 → 0.0.3
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/lib/syslog_tls/version.rb +1 -1
- metadata +5 -16
- data/.coveralls.yml +0 -15
- data/.gitignore +0 -39
- data/.travis.yml +0 -29
- data/docs/configuration.md +0 -139
- data/fluent-plugin-syslog-tls.gemspec +0 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1cb778213dabd7badb67d0ea2b90737bbc5167a4a2b79bb80a5f9ba3ec3c917
|
4
|
+
data.tar.gz: bf828870ef658bd6b86ccee3dac47603ff0170e9c7ade4ad5e472317f3c73c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 669a885ee60be9c270547de61ba11117f31b3a82b0cb9d25ab341d896b2e215f435990e190e891a42f825f80fb7b55e0b466e6bf5128811168a56aa39c3b8d5d
|
7
|
+
data.tar.gz: 5c7229722a8ade050ea7b9f095a580aee1db9f5842141934cc10a27a6008838c4b81e0272db7498a87b4339defab593d1f23aa99879df3124d0717a73c524004
|
data/lib/syslog_tls/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-syslog-d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Juan Manuel Cristóbal
|
7
|
+
- Juan Manuel Cristóbal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -116,22 +116,17 @@ dependencies:
|
|
116
116
|
version: '0.11'
|
117
117
|
description: Syslog TLS output plugin with formatting support, for Fluentd
|
118
118
|
email:
|
119
|
-
-
|
119
|
+
- tm@iprog.com
|
120
120
|
executables: []
|
121
121
|
extensions: []
|
122
122
|
extra_rdoc_files: []
|
123
123
|
files:
|
124
|
-
- ".coveralls.yml"
|
125
|
-
- ".gitignore"
|
126
|
-
- ".travis.yml"
|
127
124
|
- CHANGELOG.md
|
128
125
|
- Gemfile
|
129
126
|
- Gemfile.lock
|
130
127
|
- LICENSE
|
131
128
|
- README.md
|
132
129
|
- Rakefile
|
133
|
-
- docs/configuration.md
|
134
|
-
- fluent-plugin-syslog-tls.gemspec
|
135
130
|
- lib/fluent/plugin/out_syslog_tls.rb
|
136
131
|
- lib/syslog_tls/facility.rb
|
137
132
|
- lib/syslog_tls/logger.rb
|
@@ -169,10 +164,4 @@ rubygems_version: 3.1.2
|
|
169
164
|
signing_key:
|
170
165
|
specification_version: 4
|
171
166
|
summary: Fluent Syslog TLS output plugin for D
|
172
|
-
test_files:
|
173
|
-
- test/fluent/test_out_syslog_tls.rb
|
174
|
-
- test/helper.rb
|
175
|
-
- test/ssl.rb
|
176
|
-
- test/syslog_tls/test_logger.rb
|
177
|
-
- test/syslog_tls/test_protocol.rb
|
178
|
-
- test/syslog_tls/test_ssl_transport.rb
|
167
|
+
test_files: []
|
data/.coveralls.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# Copyright 2016 Acquia, Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
service_name: travis-ci
|
data/.gitignore
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
/.config
|
4
|
-
/coverage/
|
5
|
-
/InstalledFiles
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/spec/examples.txt
|
9
|
-
/test/tmp/
|
10
|
-
/test/version_tmp/
|
11
|
-
/tmp/
|
12
|
-
|
13
|
-
## Specific to RubyMotion:
|
14
|
-
.dat*
|
15
|
-
.repl_history
|
16
|
-
build/
|
17
|
-
|
18
|
-
## Documentation cache and generated files:
|
19
|
-
/.yardoc/
|
20
|
-
/_yardoc/
|
21
|
-
/doc/
|
22
|
-
/rdoc/
|
23
|
-
|
24
|
-
## Environment normalization:
|
25
|
-
/.bundle/
|
26
|
-
/vendor/bundle
|
27
|
-
/lib/bundler/man/
|
28
|
-
|
29
|
-
# for a library or gem, you might want to ignore these files since the code is
|
30
|
-
# intended to run in multiple environments; otherwise, check them in:
|
31
|
-
# Gemfile.lock
|
32
|
-
.ruby-version
|
33
|
-
.ruby-gemset
|
34
|
-
|
35
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
36
|
-
.rvmrc
|
37
|
-
|
38
|
-
## System
|
39
|
-
.DS_Store
|
data/.travis.yml
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# Copyright 2016 Acquia, Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
language: ruby
|
16
|
-
sudo: required
|
17
|
-
services:
|
18
|
-
- docker
|
19
|
-
rvm:
|
20
|
-
- 2.1
|
21
|
-
- 2.2
|
22
|
-
- 2.3.0
|
23
|
-
before_install:
|
24
|
-
- 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
|
25
|
-
install:
|
26
|
-
- bundle install --retry 3
|
27
|
-
script:
|
28
|
-
- bundle exec rake
|
29
|
-
|
data/docs/configuration.md
DELETED
@@ -1,139 +0,0 @@
|
|
1
|
-
# Configuration
|
2
|
-
|
3
|
-
This plugin allows to configure all syslog message attributes.
|
4
|
-
|
5
|
-
## Static configuration
|
6
|
-
|
7
|
-
Static configuration allow to define connection details, facility and hostname that will
|
8
|
-
apply to all messages.
|
9
|
-
|
10
|
-
### host
|
11
|
-
|
12
|
-
Host represents DNS name of endpoint where should be data sent. Example: `syslog.collection.us1.sumologic.com` or `logs1.papertrailapp.com`
|
13
|
-
|
14
|
-
### port
|
15
|
-
|
16
|
-
Example: `6514`
|
17
|
-
|
18
|
-
### idle_timeout
|
19
|
-
|
20
|
-
If a given tag has gone this many seconds between log messages, disconnect and reconnect before sending logs. Useful in low-traffic logging situations with remote hosts that disconnect after a period of time. Disabled by default. Example: `600`
|
21
|
-
|
22
|
-
### ca_cert
|
23
|
-
|
24
|
-
Whether and how to verify the server's TLS certificate signing chain. Examples:
|
25
|
-
* ca_cert system - Default; use the system CA certificate store (which must then be configured correctly)
|
26
|
-
* ca_cert false - Disable verification; not recommended
|
27
|
-
* ca_cert /path/to/file - A path+filename to a single CA file
|
28
|
-
* ca_cert /path/to/dir/ - A directory of CA files (in format that OpenSSL can parse); must end with /
|
29
|
-
|
30
|
-
### verify_cert_name
|
31
|
-
|
32
|
-
Whether to verify that the server's cert matches `host`. Enabled by default (except when `ca_cert false`). Recommended; helps prevent MitM attacks. Example: `true`
|
33
|
-
|
34
|
-
### token
|
35
|
-
|
36
|
-
Some services require a token to identify the account. Example: `ABABABABABABA@99999`. Not required for Papertrail.
|
37
|
-
|
38
|
-
### client_cert
|
39
|
-
|
40
|
-
Optionally path to client certificate for TLS connection. Example: `/path/to/crt/file.crt`
|
41
|
-
|
42
|
-
### client_key
|
43
|
-
|
44
|
-
Optionally path to client private key for TLS connection. Example: `/path/to/key/file.key`
|
45
|
-
|
46
|
-
### hostname
|
47
|
-
|
48
|
-
Default hostname that is going to be sent in syslog message. Example: `ip-10-0-0-10`
|
49
|
-
|
50
|
-
### facility
|
51
|
-
|
52
|
-
Default syslog facility for all records. Example: `LOCAL0`
|
53
|
-
|
54
|
-
## Per message configuration
|
55
|
-
|
56
|
-
Its possible to configure the plugin to extract various parts of syslog message header
|
57
|
-
from processed record itself. That allows to dynamically set app_name, procid, msgid from
|
58
|
-
records if single match is being used to log messages from multiple sources.
|
59
|
-
|
60
|
-
### severity_key
|
61
|
-
|
62
|
-
Optionally record key where to get severity from the record. If not provided default `INFO` will be used.
|
63
|
-
|
64
|
-
### facility_key
|
65
|
-
|
66
|
-
Optionally record key where to get syslog facility from the record. If not provided default `LOCAL0` will be used.
|
67
|
-
|
68
|
-
### hostname_key
|
69
|
-
|
70
|
-
Optionally record key where to get hostname from the record. If not provided hostname is determined by system hostname.
|
71
|
-
|
72
|
-
### app_name_key
|
73
|
-
|
74
|
-
Optionally record key where to get app_name from the record. If not provided nil value will be sent.
|
75
|
-
|
76
|
-
### procid_key
|
77
|
-
|
78
|
-
Optionally record key where to get procid from the record. If not provided nil value will be sent.
|
79
|
-
|
80
|
-
### msgid_key
|
81
|
-
|
82
|
-
Optionally record key where to get msgid from the record. If not provided nil value will be sent.
|
83
|
-
|
84
|
-
## Example
|
85
|
-
|
86
|
-
```
|
87
|
-
<match>
|
88
|
-
@type syslog_tls
|
89
|
-
host logs1.papertrailapp.com
|
90
|
-
port 12345
|
91
|
-
idle_timeout 720
|
92
|
-
|
93
|
-
hostname static-hostname
|
94
|
-
facility SYSLOG
|
95
|
-
|
96
|
-
# You can configure syslog headers to be picked from actual message
|
97
|
-
# processed by plugin. If key is not provided '-' value will be sent
|
98
|
-
# which is NIL by syslog specification.
|
99
|
-
severity_key RECORD_SEVERITY_KEY
|
100
|
-
facility_key RECORD_FACILITY_KEY
|
101
|
-
hostname_key ...
|
102
|
-
app_name_key ...
|
103
|
-
procid_key ...
|
104
|
-
msgid_key ...
|
105
|
-
|
106
|
-
# Fluent's standard formatting options are supported. Default is 'json'.
|
107
|
-
# Example: For Docker logs sent to Papertrail, send only the log text:
|
108
|
-
format single_value
|
109
|
-
message_key log
|
110
|
-
</match>
|
111
|
-
```
|
112
|
-
|
113
|
-
```
|
114
|
-
<match>
|
115
|
-
@type syslog_tls
|
116
|
-
host syslog.collection.us1.sumologic.com
|
117
|
-
port 6514
|
118
|
-
token [token]@[iana-id]
|
119
|
-
client_cert /path/to/cert/file.crt
|
120
|
-
client_key /path/to/key/file.key
|
121
|
-
verify_cert_name true
|
122
|
-
|
123
|
-
hostname static-hostname
|
124
|
-
facility SYSLOG
|
125
|
-
|
126
|
-
# You can configure syslog headers to be picked from actual message
|
127
|
-
# processed by plugin. If key is not provided '-' value will be sent
|
128
|
-
# which is NIL by syslog specification.
|
129
|
-
severity_key RECORD_SEVERITY_KEY
|
130
|
-
facility_key RECORD_FACILITY_KEY
|
131
|
-
hostname_key ...
|
132
|
-
app_name_key ...
|
133
|
-
procid_key ...
|
134
|
-
msgid_key ...
|
135
|
-
|
136
|
-
# Fluent's standard formatting options are supported. Default is 'json'.
|
137
|
-
format json
|
138
|
-
</match>
|
139
|
-
```
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# Copyright 2016 Acquia, Inc.
|
2
|
-
# Copyright 2016-2019 t.e.morgan.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
lib = File.expand_path('../lib', __FILE__)
|
17
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
18
|
-
require 'syslog_tls/version'
|
19
|
-
|
20
|
-
Gem::Specification.new do |s|
|
21
|
-
s.name = 'fluent-plugin-syslog-d'
|
22
|
-
s.version = SyslogTls::VERSION
|
23
|
-
s.authors = ['Juan Manuel Cristóbal MOreno']
|
24
|
-
s.email = ['juanmcristobal@gmail.com']
|
25
|
-
s.summary = %q{Fluent Syslog TLS output plugin for D}
|
26
|
-
s.description = %q{Syslog TLS output plugin with formatting support, for Fluentd}
|
27
|
-
s.homepage = 'https://github.com/juanmcristobal/fluent-plugin-syslog-d'
|
28
|
-
s.license = 'Apache v2'
|
29
|
-
s.files = `git ls-files`.split($/)
|
30
|
-
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
31
|
-
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
32
|
-
s.require_paths = ['lib']
|
33
|
-
s.required_ruby_version = '>= 2.4'
|
34
|
-
|
35
|
-
s.add_runtime_dependency 'fluentd', [">= 0.14.0", "< 2"]
|
36
|
-
|
37
|
-
s.add_development_dependency 'minitest', '~> 5.8'
|
38
|
-
s.add_development_dependency 'minitest-stub_any_instance', '~> 1.0.0'
|
39
|
-
s.add_development_dependency 'rake'
|
40
|
-
s.add_development_dependency 'test-unit', '~> 3.1'
|
41
|
-
s.add_development_dependency 'webmock', '~> 3.0'
|
42
|
-
s.add_development_dependency 'simplecov', '~> 0.11'
|
43
|
-
end
|