fluent-plugin-remote_syslog 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -1
- data/VERSION +1 -1
- data/fluent-plugin-remote_syslog.gemspec +1 -0
- data/lib/fluent/plugin/out_remote_syslog.rb +4 -4
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80a31ff74985627b20680fe0f01123d5c6c13047
|
4
|
+
data.tar.gz: 45b99c0fb10f1d41d9de4db800e845e446db89a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7183a6cb450fc870e94f2cae173af25eb678cfaa901a48be49d66a0833018f9a025adfd228f1091f7f9e113cdd7e68238d0745989def796f43f95672b0c6a861
|
7
|
+
data.tar.gz: d4ee15488f773067acc64ea3c7dbbbb54b849782acb1973ca47747d0398035a17ed1c259e97e8112ae20619effeca82670e180d6d4204603684b313786b60909
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -17,12 +17,13 @@
|
|
17
17
|
type remote_syslog
|
18
18
|
host example.com
|
19
19
|
port 25
|
20
|
-
key_name message
|
21
20
|
severity debug
|
22
21
|
program fluentd
|
23
22
|
</match>
|
24
23
|
```
|
25
24
|
|
25
|
+
This plugin makes use of [Fluent::Mixin::PlainTextFormatter](https://github.com/tagomoris/fluent-mixin-plaintextformatter), please check out its documentation for more configuration options.
|
26
|
+
|
26
27
|
## License
|
27
28
|
|
28
29
|
Copyright (c) 2014 Richard Lee. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_development_dependency "rake", "~> 10.0"
|
20
20
|
|
21
21
|
spec.add_dependency "fluentd"
|
22
|
+
spec.add_dependency "fluent-mixin-plaintextformatter"
|
22
23
|
spec.add_dependency "remote_syslog_logger", "~> 1.0.0"
|
23
24
|
spec.add_dependency "fluent-mixin-config-placeholders", "~> 0.2.0"
|
24
25
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "fluent/mixin/config_placeholders"
|
2
|
+
require "fluent/mixin/plaintextformatter"
|
2
3
|
|
3
4
|
module Fluent
|
4
5
|
class RemoteSyslogOutput < Fluent::Output
|
@@ -6,7 +7,8 @@ module Fluent
|
|
6
7
|
|
7
8
|
config_param :hostname, :string, :default => ""
|
8
9
|
|
9
|
-
|
10
|
+
include Fluent::Mixin::PlainTextFormatter
|
11
|
+
include Fluent::Mixin::ConfigPlaceholders
|
10
12
|
|
11
13
|
config_param :host, :string
|
12
14
|
config_param :port, :integer, :default => 25
|
@@ -15,8 +17,6 @@ module Fluent
|
|
15
17
|
config_param :severity, :string, :default => "notice"
|
16
18
|
config_param :tag, :string, :default => "fluentd"
|
17
19
|
|
18
|
-
include Fluent::Mixin::ConfigPlaceholders
|
19
|
-
|
20
20
|
def initialize
|
21
21
|
super
|
22
22
|
require "remote_syslog_logger"
|
@@ -40,7 +40,7 @@ module Fluent
|
|
40
40
|
def emit(tag, es, chain)
|
41
41
|
chain.next
|
42
42
|
es.each do |time, record|
|
43
|
-
@logger.transmit record
|
43
|
+
@logger.transmit format(tag, time, record)
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-remote_syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: fluent-mixin-plaintextformatter
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: remote_syslog_logger
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|