logstash-output-syslog 3.0.1 → 3.0.2
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/Gemfile +10 -1
- data/docs/index.asciidoc +239 -0
- data/logstash-output-syslog.gemspec +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b432f3430ea5831bf3f328196187df1269ce99ba
|
4
|
+
data.tar.gz: b592d6dabc782c764c2bd838ccad3e5a69bb1a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f56dcd0cdf4e019829ddb56028f55ed259f9b58ffd4fdd06a818aec4cbe28edead3925c8b4589c6bdcf57e9bcf7ba9a5e43838fd3b80a04a72e5784e20c50f7
|
7
|
+
data.tar.gz: a809ee8593cc94d9c0740d16237cf047e22045b5504601fa5fa302f6ab113df232179827b0ad535023ab8ddba360823ddb5fcad8d6f76e6594700e9df11e4aba
|
data/Gemfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
|
6
|
+
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
|
7
|
+
|
8
|
+
if Dir.exist?(logstash_path) && use_logstash_source
|
9
|
+
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
|
10
|
+
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
|
11
|
+
end
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
:plugin: syslog
|
2
|
+
:type: output
|
3
|
+
|
4
|
+
///////////////////////////////////////////
|
5
|
+
START - GENERATED VARIABLES, DO NOT EDIT!
|
6
|
+
///////////////////////////////////////////
|
7
|
+
:version: %VERSION%
|
8
|
+
:release_date: %RELEASE_DATE%
|
9
|
+
:changelog_url: %CHANGELOG_URL%
|
10
|
+
:include_path: ../../../../logstash/docs/include
|
11
|
+
///////////////////////////////////////////
|
12
|
+
END - GENERATED VARIABLES, DO NOT EDIT!
|
13
|
+
///////////////////////////////////////////
|
14
|
+
|
15
|
+
[id="plugins-{type}-{plugin}"]
|
16
|
+
|
17
|
+
=== Syslog output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Send events to a syslog server.
|
24
|
+
|
25
|
+
You can send messages compliant with RFC3164 or RFC5424
|
26
|
+
using either UDP or TCP as the transport protocol.
|
27
|
+
|
28
|
+
By default the contents of the `message` field will be shipped as
|
29
|
+
the free-form message text part of the emitted syslog message. If
|
30
|
+
your messages don't have a `message` field or if you for some other
|
31
|
+
reason want to change the emitted message, modify the `message`
|
32
|
+
configuration option.
|
33
|
+
|
34
|
+
[id="plugins-{type}s-{plugin}-options"]
|
35
|
+
==== Syslog Output Configuration Options
|
36
|
+
|
37
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
38
|
+
|
39
|
+
[cols="<,<,<",options="header",]
|
40
|
+
|=======================================================================
|
41
|
+
|Setting |Input type|Required
|
42
|
+
| <<plugins-{type}s-{plugin}-appname>> |<<string,string>>|No
|
43
|
+
| <<plugins-{type}s-{plugin}-facility>> |<<string,string>>|No
|
44
|
+
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|Yes
|
45
|
+
| <<plugins-{type}s-{plugin}-message>> |<<string,string>>|No
|
46
|
+
| <<plugins-{type}s-{plugin}-msgid>> |<<string,string>>|No
|
47
|
+
| <<plugins-{type}s-{plugin}-port>> |<<number,number>>|Yes
|
48
|
+
| <<plugins-{type}s-{plugin}-priority>> |<<string,string>>|No
|
49
|
+
| <<plugins-{type}s-{plugin}-procid>> |<<string,string>>|No
|
50
|
+
| <<plugins-{type}s-{plugin}-protocol>> |<<string,string>>, one of `["tcp", "udp", "ssl-tcp"]`|No
|
51
|
+
| <<plugins-{type}s-{plugin}-reconnect_interval>> |<<number,number>>|No
|
52
|
+
| <<plugins-{type}s-{plugin}-rfc>> |<<string,string>>, one of `["rfc3164", "rfc5424"]`|No
|
53
|
+
| <<plugins-{type}s-{plugin}-severity>> |<<string,string>>|No
|
54
|
+
| <<plugins-{type}s-{plugin}-sourcehost>> |<<string,string>>|No
|
55
|
+
| <<plugins-{type}s-{plugin}-ssl_cacert>> |a valid filesystem path|No
|
56
|
+
| <<plugins-{type}s-{plugin}-ssl_cert>> |a valid filesystem path|No
|
57
|
+
| <<plugins-{type}s-{plugin}-ssl_key>> |a valid filesystem path|No
|
58
|
+
| <<plugins-{type}s-{plugin}-ssl_key_passphrase>> |<<password,password>>|No
|
59
|
+
| <<plugins-{type}s-{plugin}-ssl_verify>> |<<boolean,boolean>>|No
|
60
|
+
| <<plugins-{type}s-{plugin}-use_labels>> |<<boolean,boolean>>|No
|
61
|
+
|=======================================================================
|
62
|
+
|
63
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
64
|
+
output plugins.
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
[id="plugins-{type}s-{plugin}-appname"]
|
69
|
+
===== `appname`
|
70
|
+
|
71
|
+
* Value type is <<string,string>>
|
72
|
+
* Default value is `"LOGSTASH"`
|
73
|
+
|
74
|
+
application name for syslog message. The new value can include `%{foo}` strings
|
75
|
+
to help you build a new value from other parts of the event.
|
76
|
+
|
77
|
+
[id="plugins-{type}s-{plugin}-facility"]
|
78
|
+
===== `facility`
|
79
|
+
|
80
|
+
* Value type is <<string,string>>
|
81
|
+
* Default value is `"user-level"`
|
82
|
+
|
83
|
+
facility label for syslog message
|
84
|
+
default fallback to user-level as in rfc3164
|
85
|
+
The new value can include `%{foo}` strings
|
86
|
+
to help you build a new value from other parts of the event.
|
87
|
+
|
88
|
+
[id="plugins-{type}s-{plugin}-host"]
|
89
|
+
===== `host`
|
90
|
+
|
91
|
+
* This is a required setting.
|
92
|
+
* Value type is <<string,string>>
|
93
|
+
* There is no default value for this setting.
|
94
|
+
|
95
|
+
syslog server address to connect to
|
96
|
+
|
97
|
+
[id="plugins-{type}s-{plugin}-message"]
|
98
|
+
===== `message`
|
99
|
+
|
100
|
+
* Value type is <<string,string>>
|
101
|
+
* Default value is `"%{message}"`
|
102
|
+
|
103
|
+
message text to log. The new value can include `%{foo}` strings
|
104
|
+
to help you build a new value from other parts of the event.
|
105
|
+
|
106
|
+
[id="plugins-{type}s-{plugin}-msgid"]
|
107
|
+
===== `msgid`
|
108
|
+
|
109
|
+
* Value type is <<string,string>>
|
110
|
+
* Default value is `"-"`
|
111
|
+
|
112
|
+
message id for syslog message. The new value can include `%{foo}` strings
|
113
|
+
to help you build a new value from other parts of the event.
|
114
|
+
|
115
|
+
[id="plugins-{type}s-{plugin}-port"]
|
116
|
+
===== `port`
|
117
|
+
|
118
|
+
* This is a required setting.
|
119
|
+
* Value type is <<number,number>>
|
120
|
+
* There is no default value for this setting.
|
121
|
+
|
122
|
+
syslog server port to connect to
|
123
|
+
|
124
|
+
[id="plugins-{type}s-{plugin}-priority"]
|
125
|
+
===== `priority`
|
126
|
+
|
127
|
+
* Value type is <<string,string>>
|
128
|
+
* Default value is `"%{syslog_pri}"`
|
129
|
+
|
130
|
+
syslog priority
|
131
|
+
The new value can include `%{foo}` strings
|
132
|
+
to help you build a new value from other parts of the event.
|
133
|
+
|
134
|
+
[id="plugins-{type}s-{plugin}-procid"]
|
135
|
+
===== `procid`
|
136
|
+
|
137
|
+
* Value type is <<string,string>>
|
138
|
+
* Default value is `"-"`
|
139
|
+
|
140
|
+
process id for syslog message. The new value can include `%{foo}` strings
|
141
|
+
to help you build a new value from other parts of the event.
|
142
|
+
|
143
|
+
[id="plugins-{type}s-{plugin}-protocol"]
|
144
|
+
===== `protocol`
|
145
|
+
|
146
|
+
* Value can be any of: `tcp`, `udp`, `ssl-tcp`
|
147
|
+
* Default value is `"udp"`
|
148
|
+
|
149
|
+
syslog server protocol. you can choose between udp, tcp and ssl/tls over tcp
|
150
|
+
|
151
|
+
[id="plugins-{type}s-{plugin}-reconnect_interval"]
|
152
|
+
===== `reconnect_interval`
|
153
|
+
|
154
|
+
* Value type is <<number,number>>
|
155
|
+
* Default value is `1`
|
156
|
+
|
157
|
+
when connection fails, retry interval in sec.
|
158
|
+
|
159
|
+
[id="plugins-{type}s-{plugin}-rfc"]
|
160
|
+
===== `rfc`
|
161
|
+
|
162
|
+
* Value can be any of: `rfc3164`, `rfc5424`
|
163
|
+
* Default value is `"rfc3164"`
|
164
|
+
|
165
|
+
syslog message format: you can choose between rfc3164 or rfc5424
|
166
|
+
|
167
|
+
[id="plugins-{type}s-{plugin}-severity"]
|
168
|
+
===== `severity`
|
169
|
+
|
170
|
+
* Value type is <<string,string>>
|
171
|
+
* Default value is `"notice"`
|
172
|
+
|
173
|
+
severity label for syslog message
|
174
|
+
default fallback to notice as in rfc3164
|
175
|
+
The new value can include `%{foo}` strings
|
176
|
+
to help you build a new value from other parts of the event.
|
177
|
+
|
178
|
+
[id="plugins-{type}s-{plugin}-sourcehost"]
|
179
|
+
===== `sourcehost`
|
180
|
+
|
181
|
+
* Value type is <<string,string>>
|
182
|
+
* Default value is `"%{host}"`
|
183
|
+
|
184
|
+
source host for syslog message. The new value can include `%{foo}` strings
|
185
|
+
to help you build a new value from other parts of the event.
|
186
|
+
|
187
|
+
[id="plugins-{type}s-{plugin}-ssl_cacert"]
|
188
|
+
===== `ssl_cacert`
|
189
|
+
|
190
|
+
* Value type is <<path,path>>
|
191
|
+
* There is no default value for this setting.
|
192
|
+
|
193
|
+
The SSL CA certificate, chainfile or CA path. The system CA path is automatically included.
|
194
|
+
|
195
|
+
[id="plugins-{type}s-{plugin}-ssl_cert"]
|
196
|
+
===== `ssl_cert`
|
197
|
+
|
198
|
+
* Value type is <<path,path>>
|
199
|
+
* There is no default value for this setting.
|
200
|
+
|
201
|
+
SSL certificate path
|
202
|
+
|
203
|
+
[id="plugins-{type}s-{plugin}-ssl_key"]
|
204
|
+
===== `ssl_key`
|
205
|
+
|
206
|
+
* Value type is <<path,path>>
|
207
|
+
* There is no default value for this setting.
|
208
|
+
|
209
|
+
SSL key path
|
210
|
+
|
211
|
+
[id="plugins-{type}s-{plugin}-ssl_key_passphrase"]
|
212
|
+
===== `ssl_key_passphrase`
|
213
|
+
|
214
|
+
* Value type is <<password,password>>
|
215
|
+
* Default value is `nil`
|
216
|
+
|
217
|
+
SSL key passphrase
|
218
|
+
|
219
|
+
[id="plugins-{type}s-{plugin}-ssl_verify"]
|
220
|
+
===== `ssl_verify`
|
221
|
+
|
222
|
+
* Value type is <<boolean,boolean>>
|
223
|
+
* Default value is `false`
|
224
|
+
|
225
|
+
Verify the identity of the other end of the SSL connection against the CA.
|
226
|
+
|
227
|
+
[id="plugins-{type}s-{plugin}-use_labels"]
|
228
|
+
===== `use_labels`
|
229
|
+
|
230
|
+
* Value type is <<boolean,boolean>>
|
231
|
+
* Default value is `true`
|
232
|
+
|
233
|
+
use label parsing for severity and facility levels
|
234
|
+
use priority field if set to false
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
239
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-syslog'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Send events to a syslog server."
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.require_paths = ["lib"]
|
12
12
|
|
13
13
|
# Files
|
14
|
-
s.files = Dir[
|
14
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
15
15
|
|
16
16
|
# Tests
|
17
17
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- LICENSE
|
85
85
|
- NOTICE.TXT
|
86
86
|
- README.md
|
87
|
+
- docs/index.asciidoc
|
87
88
|
- lib/logstash/outputs/syslog.rb
|
88
89
|
- logstash-output-syslog.gemspec
|
89
90
|
- spec/outputs/syslog_spec.rb
|
@@ -109,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
110
|
version: '0'
|
110
111
|
requirements: []
|
111
112
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.4.8
|
113
114
|
signing_key:
|
114
115
|
specification_version: 4
|
115
116
|
summary: Send events to a syslog server.
|