logstash-input-unix 3.0.3 → 3.0.4
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 +8 -1
- data/docs/index.asciidoc +103 -0
- data/logstash-input-unix.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4266a1b10db65d11b7cbc5b759b531ad26d6501e
|
4
|
+
data.tar.gz: 97fe6ceb9b176b47e421a4cb5ee4fe104d584d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8f0d90386948854bac82469705394ff92bbb6ae17b1531494ca99b42391c575505696b747eb05ef5e6f3faae6593e482dd36c5e013ce0f5f36a2104956583f8
|
7
|
+
data.tar.gz: fb875ddaceefe5acb43bce7d0831531baf1b2495073d28417d9bb0322829f2602e3a7bb5b964463d76324aa933d9537a424e1dd58c8fbd5cc9b59031a59eef0d
|
data/Gemfile
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in logstash-mass_effect.gemspec
|
4
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,103 @@
|
|
1
|
+
:plugin: unix
|
2
|
+
:type: input
|
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
|
+
=== Unix input plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Read events over a UNIX socket.
|
24
|
+
|
25
|
+
Like `stdin` and `file` inputs, each event is assumed to be one line of text.
|
26
|
+
|
27
|
+
Can either accept connections from clients or connect to a server,
|
28
|
+
depending on `mode`.
|
29
|
+
|
30
|
+
[id="plugins-{type}s-{plugin}-options"]
|
31
|
+
==== Unix Input Configuration Options
|
32
|
+
|
33
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
34
|
+
|
35
|
+
[cols="<,<,<",options="header",]
|
36
|
+
|=======================================================================
|
37
|
+
|Setting |Input type|Required
|
38
|
+
| <<plugins-{type}s-{plugin}-data_timeout>> |<<number,number>>|No
|
39
|
+
| <<plugins-{type}s-{plugin}-force_unlink>> |<<boolean,boolean>>|No
|
40
|
+
| <<plugins-{type}s-{plugin}-mode>> |<<string,string>>, one of `["server", "client"]`|No
|
41
|
+
| <<plugins-{type}s-{plugin}-path>> |<<string,string>>|Yes
|
42
|
+
| <<plugins-{type}s-{plugin}-socket_not_present_retry_interval_seconds>> |<<number,number>>|Yes
|
43
|
+
|=======================================================================
|
44
|
+
|
45
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
46
|
+
input plugins.
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
[id="plugins-{type}s-{plugin}-data_timeout"]
|
51
|
+
===== `data_timeout`
|
52
|
+
|
53
|
+
* Value type is <<number,number>>
|
54
|
+
* Default value is `-1`
|
55
|
+
|
56
|
+
The 'read' timeout in seconds. If a particular connection is idle for
|
57
|
+
more than this timeout period, we will assume it is dead and close it.
|
58
|
+
|
59
|
+
If you never want to timeout, use -1.
|
60
|
+
|
61
|
+
[id="plugins-{type}s-{plugin}-force_unlink"]
|
62
|
+
===== `force_unlink`
|
63
|
+
|
64
|
+
* Value type is <<boolean,boolean>>
|
65
|
+
* Default value is `false`
|
66
|
+
|
67
|
+
Remove socket file in case of EADDRINUSE failure
|
68
|
+
|
69
|
+
[id="plugins-{type}s-{plugin}-mode"]
|
70
|
+
===== `mode`
|
71
|
+
|
72
|
+
* Value can be any of: `server`, `client`
|
73
|
+
* Default value is `"server"`
|
74
|
+
|
75
|
+
Mode to operate in. `server` listens for client connections,
|
76
|
+
`client` connects to a server.
|
77
|
+
|
78
|
+
[id="plugins-{type}s-{plugin}-path"]
|
79
|
+
===== `path`
|
80
|
+
|
81
|
+
* This is a required setting.
|
82
|
+
* Value type is <<string,string>>
|
83
|
+
* There is no default value for this setting.
|
84
|
+
|
85
|
+
When mode is `server`, the path to listen on.
|
86
|
+
When mode is `client`, the path to connect to.
|
87
|
+
|
88
|
+
[id="plugins-{type}s-{plugin}-socket_not_present_retry_interval_seconds"]
|
89
|
+
===== `socket_not_present_retry_interval_seconds`
|
90
|
+
|
91
|
+
* This is a required setting.
|
92
|
+
* Value type is <<number,number>>
|
93
|
+
* Default value is `5`
|
94
|
+
|
95
|
+
Amount of time in seconds to wait if the socket file is not present, before retrying.
|
96
|
+
Only positive values are allowed.
|
97
|
+
|
98
|
+
This setting is only used if `mode` is `client`.
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
103
|
+
include::{include_path}/{type}.asciidoc[]
|
data/logstash-input-unix.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-unix'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.4'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Read events over a UNIX socket."
|
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-input-unix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
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
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/inputs/unix.rb
|
74
75
|
- logstash-input-unix.gemspec
|
75
76
|
- spec/inputs/unix_spec.rb
|