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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49ac95d1d66d2769e9851953f3c924a77bb69a30b3327380bc9fdd8a270ed6d1
4
- data.tar.gz: 99ec01bb5b0c17bd5fec1efe0780a1b1ce07189a7b4127ed16e66aecf0053896
3
+ metadata.gz: 1d7f934226a8757f14322b4925d134cf9a5c4a4bd5e5900db38392221a491b4e
4
+ data.tar.gz: abd9f82c9a8d9f89ed6d486dbc9d98db5c18fcb42cef0aaf4f4fd19add8aa8dd
5
5
  SHA512:
6
- metadata.gz: 3ad46f9b183926d430c7ac8154f1055b1f6977992dddfedf237e1a7ff6625f47bb92b18c6c27ff34a8956465d031dec4b6ad477d66a6f134a2d5aac0cb64d07f
7
- data.tar.gz: 6479c6692d31cd016ae05ab80e2b1937a2b59e48bf0b316ab5459cdf424a32b749b64924a504a5c2796d3ebe2a08b15056cccf632471cf50d0dcf4b4b6460361
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
- This is a plugin for [Logstash](https://github.com/elastic/logstash).
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
 
@@ -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::Exec
154
+ end # class LogStash::Inputs::Ngc
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-ngc'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'summary'
6
6
  s.description = 'description'
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.0
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-06 00:00:00.000000000 Z
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