logstash-input-ngn 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -24
- data/lib/logstash/inputs/ngn.rb +5 -2
- data/logstash-input-ngn.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d7463d317da5cacbe8df23895e240b3b4b7e7236dcb4c3880f4e31d55e9cb98
|
4
|
+
data.tar.gz: 7d49455b19d0dc99e6bd6dcbb733c5998a4a79ded545f6c8080dc3f70b9661d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b28134af1849fa218b0788823357e91cc6c3d273b831d2bb71af6027d88333da22fb65f24c5db412093c53731a8008f9d1ca2cee30a5956c81b1b8e2e363b2d1
|
7
|
+
data.tar.gz: 7fce14e9f6128be1b3209dd85efdecf609b9512924f3eca1eec9458d0d763d21e9dbf7cb8f51513abbd293c823580298aa9efc236b2365d3bc3921aca7031cbc
|
data/README.md
CHANGED
@@ -1,19 +1,7 @@
|
|
1
|
-
# Logstash Plugin
|
1
|
+
# Logstash NGN Input Plugin
|
2
2
|
|
3
|
-
|
3
|
+
Polls the NGN-SPS API for seat data.
|
4
4
|
|
5
|
-
It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
|
6
|
-
|
7
|
-
## Documentation
|
8
|
-
|
9
|
-
Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
|
10
|
-
|
11
|
-
- For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
|
12
|
-
- For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
|
13
|
-
|
14
|
-
## Need Help?
|
15
|
-
|
16
|
-
Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
|
17
5
|
|
18
6
|
## Developing
|
19
7
|
|
@@ -74,13 +62,3 @@ gem build logstash-filter-awesome.gemspec
|
|
74
62
|
bin/logstash-plugin install /your/local/plugin/logstash-filter-awesome.gem
|
75
63
|
```
|
76
64
|
- Start Logstash and proceed to test the plugin
|
77
|
-
|
78
|
-
## Contributing
|
79
|
-
|
80
|
-
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
|
81
|
-
|
82
|
-
Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
|
83
|
-
|
84
|
-
It is more important to the community that you are able to contribute.
|
85
|
-
|
86
|
-
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
data/lib/logstash/inputs/ngn.rb
CHANGED
@@ -27,6 +27,9 @@ class LogStash::Inputs::Ngn < LogStash::Inputs::Base
|
|
27
27
|
# ngn password
|
28
28
|
config :password, :validate => :string, :required => true
|
29
29
|
|
30
|
+
# ngc env (stg | prod)
|
31
|
+
config :env, :validate => :string, :required => true
|
32
|
+
|
30
33
|
# authentication token
|
31
34
|
config :token, :validate => :string
|
32
35
|
|
@@ -108,7 +111,7 @@ class LogStash::Inputs::Ngn < LogStash::Inputs::Base
|
|
108
111
|
private
|
109
112
|
|
110
113
|
def run_script
|
111
|
-
command = "python3 #{@script} -u #{@username} -p #{@password}"
|
114
|
+
command = "python3 #{@script} -u #{@username} -p #{@password} -e #{@env}"
|
112
115
|
if @token
|
113
116
|
command << " -t \"#{@token}\""
|
114
117
|
end
|
@@ -146,4 +149,4 @@ class LogStash::Inputs::Ngn < LogStash::Inputs::Base
|
|
146
149
|
end
|
147
150
|
|
148
151
|
|
149
|
-
end # class LogStash::Inputs::
|
152
|
+
end # class LogStash::Inputs::Ngn
|
data/logstash-input-ngn.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-ngn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Fischer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|