logstash-input-ngc 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 -14
- data/lib/logstash/inputs/ngc.rb +11 -2
- data/logstash-input-ngc.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: 1d7f934226a8757f14322b4925d134cf9a5c4a4bd5e5900db38392221a491b4e
|
4
|
+
data.tar.gz: abd9f82c9a8d9f89ed6d486dbc9d98db5c18fcb42cef0aaf4f4fd19add8aa8dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a3c5a1eb361f24004ab299420a773380e190cb2ce7e68272c80b126dfa05ba2337f10838c2b6f707e7c0decf7b79df0e25a146749c02a7c5c070bdf82d5d404
|
7
|
+
data.tar.gz: 5975a1518d123154b5d5cceb5f6005cfaad6a2087fa36c1679b941c7206f43954df0cac113e3154dec6b6b39890a9f4a5e1547cc26bbaae8dc0159ecb38bee89
|
data/README.md
CHANGED
@@ -1,19 +1,7 @@
|
|
1
|
-
# Logstash Plugin
|
1
|
+
# Logstash NGC Input Plugin
|
2
2
|
|
3
|
-
|
3
|
+
Polls the NGC API for ace 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
|
|
data/lib/logstash/inputs/ngc.rb
CHANGED
@@ -24,6 +24,15 @@ class LogStash::Inputs::Ngc < LogStash::Inputs::Base
|
|
24
24
|
# ngc api key
|
25
25
|
config :api_key, :validate => :string, :required => true
|
26
26
|
|
27
|
+
# ngc auth url
|
28
|
+
config :auth_url, :validate => :string, :required => true
|
29
|
+
|
30
|
+
# ngc api url
|
31
|
+
config :api_url, :validate => :string, :required => true
|
32
|
+
|
33
|
+
# ngc env (stg | prod)
|
34
|
+
config :env, :validate => :string, :required => true
|
35
|
+
|
27
36
|
# jwt token
|
28
37
|
config :jwt_token, :validate => :string
|
29
38
|
|
@@ -104,7 +113,7 @@ class LogStash::Inputs::Ngc < LogStash::Inputs::Base
|
|
104
113
|
private
|
105
114
|
|
106
115
|
def run_script
|
107
|
-
command = "python3 #{@script} -k #{@api_key}"
|
116
|
+
command = "python3 #{@script} -k #{@api_key} -e #{@env} --auth_url #{@auth_url} --api_url #{@api_url}"
|
108
117
|
if @jwt_token
|
109
118
|
command << " -t #{@jwt_token}"
|
110
119
|
end
|
@@ -142,4 +151,4 @@ class LogStash::Inputs::Ngc < LogStash::Inputs::Base
|
|
142
151
|
end
|
143
152
|
|
144
153
|
|
145
|
-
end # class LogStash::Inputs::
|
154
|
+
end # class LogStash::Inputs::Ngc
|
data/logstash-input-ngc.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-ngc
|
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
|