logstash-input-stdin 2.0.4 → 3.0.0
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/.github/CONTRIBUTING.md +65 -0
- data/.github/ISSUE_TEMPLATE.md +9 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +3 -1
- data/LICENSE +1 -1
- data/README.md +12 -3
- data/lib/logstash/inputs/stdin.rb +1 -1
- data/logstash-input-stdin.gemspec +6 -7
- metadata +30 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bdd48833746cc43ea5a8717a0dcf228d0d1d748
|
4
|
+
data.tar.gz: a3212ecf6ea4f4e5440c57017698e9f0d7d4a56c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca93871118d75b37a3e8d31ce11c464f9a92711ba82d74355aa0125d7b22ac57e0ea1232f3e92b9b860358eb62b668f42078f3b14fe741252823c06a3e577667
|
7
|
+
data.tar.gz: 74940fc2e669fb305845c6f77ae5cc83cc6701d10ba1af9916d0831e66c8bdfdc62eda7a3c6e30aa6c798947757e1a5f33d326513527301566f4e8bf78614d4f
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Contributing to Logstash
|
2
|
+
|
3
|
+
All contributions are welcome: ideas, patches, documentation, bug reports,
|
4
|
+
complaints, etc!
|
5
|
+
|
6
|
+
Programming is not a required skill, and there are many ways to help out!
|
7
|
+
It is more important to us that you are able to contribute.
|
8
|
+
|
9
|
+
That said, some basic guidelines, which you are free to ignore :)
|
10
|
+
|
11
|
+
## Want to learn?
|
12
|
+
|
13
|
+
Want to lurk about and see what others are doing with Logstash?
|
14
|
+
|
15
|
+
* The irc channel (#logstash on irc.freenode.org) is a good place for this
|
16
|
+
* The [forum](https://discuss.elastic.co/c/logstash) is also
|
17
|
+
great for learning from others.
|
18
|
+
|
19
|
+
## Got Questions?
|
20
|
+
|
21
|
+
Have a problem you want Logstash to solve for you?
|
22
|
+
|
23
|
+
* You can ask a question in the [forum](https://discuss.elastic.co/c/logstash)
|
24
|
+
* Alternately, you are welcome to join the IRC channel #logstash on
|
25
|
+
irc.freenode.org and ask for help there!
|
26
|
+
|
27
|
+
## Have an Idea or Feature Request?
|
28
|
+
|
29
|
+
* File a ticket on [GitHub](https://github.com/elastic/logstash/issues). Please remember that GitHub is used only for issues and feature requests. If you have a general question, the [forum](https://discuss.elastic.co/c/logstash) or IRC would be the best place to ask.
|
30
|
+
|
31
|
+
## Something Not Working? Found a Bug?
|
32
|
+
|
33
|
+
If you think you found a bug, it probably is a bug.
|
34
|
+
|
35
|
+
* If it is a general Logstash or a pipeline issue, file it in [Logstash GitHub](https://github.com/elasticsearch/logstash/issues)
|
36
|
+
* If it is specific to a plugin, please file it in the respective repository under [logstash-plugins](https://github.com/logstash-plugins)
|
37
|
+
* or ask the [forum](https://discuss.elastic.co/c/logstash).
|
38
|
+
|
39
|
+
# Contributing Documentation and Code Changes
|
40
|
+
|
41
|
+
If you have a bugfix or new feature that you would like to contribute to
|
42
|
+
logstash, and you think it will take more than a few minutes to produce the fix
|
43
|
+
(ie; write code), it is worth discussing the change with the Logstash users and developers first! You can reach us via [GitHub](https://github.com/elastic/logstash/issues), the [forum](https://discuss.elastic.co/c/logstash), or via IRC (#logstash on freenode irc)
|
44
|
+
Please note that Pull Requests without tests will not be merged. If you would like to contribute but do not have experience with writing tests, please ping us on IRC/forum or create a PR and ask our help.
|
45
|
+
|
46
|
+
## Contributing to plugins
|
47
|
+
|
48
|
+
Check our [documentation](https://www.elastic.co/guide/en/logstash/current/contributing-to-logstash.html) on how to contribute to plugins or write your own! It is super easy!
|
49
|
+
|
50
|
+
## Contribution Steps
|
51
|
+
|
52
|
+
1. Test your changes! [Run](https://github.com/elastic/logstash#testing) the test suite
|
53
|
+
2. Please make sure you have signed our [Contributor License
|
54
|
+
Agreement](https://www.elastic.co/contributor-agreement/). We are not
|
55
|
+
asking you to assign copyright to us, but to give us the right to distribute
|
56
|
+
your code without restriction. We ask this of all contributors in order to
|
57
|
+
assure our users of the origin and continuing existence of the code. You
|
58
|
+
only need to sign the CLA once.
|
59
|
+
3. Send a pull request! Push your changes to your fork of the repository and
|
60
|
+
[submit a pull
|
61
|
+
request](https://help.github.com/articles/using-pull-requests). In the pull
|
62
|
+
request, describe what your changes do and mention any bugs/issues related
|
63
|
+
to the pull request.
|
64
|
+
|
65
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Please post all product and debugging questions on our [forum](https://discuss.elastic.co/c/logstash). Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.
|
2
|
+
|
3
|
+
For all general issues, please provide the following details for fast resolution:
|
4
|
+
|
5
|
+
- Version:
|
6
|
+
- Operating System:
|
7
|
+
- Config File (if you have sensitive info, please remove it):
|
8
|
+
- Sample Data:
|
9
|
+
- Steps to Reproduce:
|
@@ -0,0 +1 @@
|
|
1
|
+
Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/
|
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
## 3.0.0
|
2
|
+
- Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
|
1
3
|
# 2.0.4
|
2
4
|
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
3
5
|
# 2.0.3
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
-
[](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-stdin-unit/)
|
3
|
+
[](https://travis-ci.org/logstash-plugins/logstash-input-stdin)
|
5
4
|
|
6
5
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
7
6
|
|
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
|
56
55
|
```
|
57
56
|
- Install plugin
|
58
57
|
```sh
|
58
|
+
# Logstash 2.3 and higher
|
59
|
+
bin/logstash-plugin install --no-verify
|
60
|
+
|
61
|
+
# Prior to Logstash 2.3
|
59
62
|
bin/plugin install --no-verify
|
63
|
+
|
60
64
|
```
|
61
65
|
- Run Logstash with your plugin
|
62
66
|
```sh
|
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
|
|
74
78
|
```
|
75
79
|
- Install the plugin from the Logstash home
|
76
80
|
```sh
|
77
|
-
|
81
|
+
# Logstash 2.3 and higher
|
82
|
+
bin/logstash-plugin install --no-verify
|
83
|
+
|
84
|
+
# Prior to Logstash 2.3
|
85
|
+
bin/plugin install --no-verify
|
86
|
+
|
78
87
|
```
|
79
88
|
- Start Logstash and proceed to test the plugin
|
80
89
|
|
@@ -26,7 +26,7 @@ class LogStash::Inputs::Stdin < LogStash::Inputs::Base
|
|
26
26
|
data = $stdin.sysread(16384)
|
27
27
|
@codec.decode(data) do |event|
|
28
28
|
decorate(event)
|
29
|
-
event
|
29
|
+
event.set("host", @host) if !event.include?("host")
|
30
30
|
queue << event
|
31
31
|
end
|
32
32
|
rescue IOError, EOFError # stdin closed
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-stdin'
|
4
|
-
s.version = '
|
4
|
+
s.version = '3.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Read events from standard input"
|
7
|
-
s.description = "This gem is a
|
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"
|
8
8
|
s.authors = ["Elastic"]
|
9
9
|
s.email = 'info@elastic.co'
|
10
10
|
s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
@@ -20,14 +20,13 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
|
21
21
|
|
22
22
|
# Gem dependencies
|
23
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "~>
|
24
|
-
|
25
|
-
s.add_runtime_dependency 'logstash-codec-plain'
|
23
|
+
s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
|
26
24
|
s.add_runtime_dependency 'logstash-codec-line'
|
27
|
-
s.add_runtime_dependency 'logstash-codec-json'
|
28
|
-
s.add_runtime_dependency 'logstash-codec-json_lines'
|
29
25
|
s.add_runtime_dependency 'concurrent-ruby'
|
30
26
|
|
27
|
+
s.add_development_dependency 'logstash-codec-plain'
|
28
|
+
s.add_development_dependency 'logstash-codec-json'
|
29
|
+
s.add_development_dependency 'logstash-codec-json_lines'
|
31
30
|
s.add_development_dependency 'logstash-devutils'
|
32
31
|
end
|
33
32
|
|
metadata
CHANGED
@@ -1,120 +1,126 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-stdin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: logstash-core-plugin-api
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
19
|
-
name: logstash-core-plugin-api
|
20
|
-
prerelease: false
|
19
|
+
version: '2.0'
|
21
20
|
type: :runtime
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: logstash-codec-line
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
|
-
name: logstash-codec-plain
|
34
|
-
prerelease: false
|
35
34
|
type: :runtime
|
35
|
+
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: concurrent-ruby
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - ">="
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
|
-
name: logstash-codec-line
|
48
|
-
prerelease: false
|
49
48
|
type: :runtime
|
49
|
+
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: logstash-codec-plain
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
59
|
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
|
-
|
62
|
+
type: :development
|
62
63
|
prerelease: false
|
63
|
-
type: :runtime
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
name: logstash-codec-json
|
70
71
|
requirement: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
73
|
- - ">="
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
|
-
|
76
|
+
type: :development
|
76
77
|
prerelease: false
|
77
|
-
type: :runtime
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
+
name: logstash-codec-json_lines
|
84
85
|
requirement: !ruby/object:Gem::Requirement
|
85
86
|
requirements:
|
86
87
|
- - ">="
|
87
88
|
- !ruby/object:Gem::Version
|
88
89
|
version: '0'
|
89
|
-
|
90
|
+
type: :development
|
90
91
|
prerelease: false
|
91
|
-
type: :runtime
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
+
name: logstash-devutils
|
98
99
|
requirement: !ruby/object:Gem::Requirement
|
99
100
|
requirements:
|
100
101
|
- - ">="
|
101
102
|
- !ruby/object:Gem::Version
|
102
103
|
version: '0'
|
103
|
-
name: logstash-devutils
|
104
|
-
prerelease: false
|
105
104
|
type: :development
|
105
|
+
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description: This gem is a
|
111
|
+
description: This gem is a Logstash plugin required to be installed on top of the
|
112
|
+
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
113
|
+
gem is not a stand-alone program
|
112
114
|
email: info@elastic.co
|
113
115
|
executables: []
|
114
116
|
extensions: []
|
115
117
|
extra_rdoc_files: []
|
116
118
|
files:
|
119
|
+
- ".github/CONTRIBUTING.md"
|
120
|
+
- ".github/ISSUE_TEMPLATE.md"
|
121
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
117
122
|
- ".gitignore"
|
123
|
+
- ".travis.yml"
|
118
124
|
- CHANGELOG.md
|
119
125
|
- CONTRIBUTORS
|
120
126
|
- Gemfile
|
@@ -131,7 +137,7 @@ licenses:
|
|
131
137
|
metadata:
|
132
138
|
logstash_plugin: 'true'
|
133
139
|
logstash_group: input
|
134
|
-
post_install_message:
|
140
|
+
post_install_message:
|
135
141
|
rdoc_options: []
|
136
142
|
require_paths:
|
137
143
|
- lib
|
@@ -146,9 +152,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
152
|
- !ruby/object:Gem::Version
|
147
153
|
version: '0'
|
148
154
|
requirements: []
|
149
|
-
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
151
|
-
signing_key:
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 2.5.1
|
157
|
+
signing_key:
|
152
158
|
specification_version: 4
|
153
159
|
summary: Read events from standard input
|
154
160
|
test_files:
|