logstash-output-loginsight 0.1.13 → 0.2.0

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
  SHA1:
3
- metadata.gz: ef32e65e47b9329686f03a7200debf3a4af7a1e0
4
- data.tar.gz: fcb94b9a3495ad68de22ddedb2860330588a7404
3
+ metadata.gz: 236d9a7c83a11fba824f0c7ccf4339167c8ac64f
4
+ data.tar.gz: 2944deae252cf72fa06d94ec6deb961dfe3ba614
5
5
  SHA512:
6
- metadata.gz: f34e1b3a95651db377f134c88054186c9366ba23de94d6782e9b2cae9874f7c644e9f31541b8a3a71d51f7cbaa67df4e3b5329a12d8950d4fd669fff36eb7d06
7
- data.tar.gz: dc8a429b68d009fdb582a8c7b8dc88868260061fa42475998b9d06c45a34b0e07eb336f818c1ca4e8faa3a5a727941c71edd544a337ef9f475f3064c4c427025
6
+ metadata.gz: be68a388a3450906cc90b0a30cc316e46f98e5314fba75907868b0c16cddf008ca8d472512b38a4e246c330ec6f0352b747a21deef8241cedb40e3f76c2aabfc
7
+ data.tar.gz: f6644a6dc1cc1cf3f605cff24102fee4eb326d63eb70de991046ebe37c78973f04e9c245a34ae89a4e9b4499c1b9aebe9bf5276fa16a119420a26402a8666d22
@@ -12,9 +12,11 @@ class LogStash::Outputs::Loginsight < LogStash::Outputs::Base
12
12
  config_name "loginsight"
13
13
 
14
14
  config :host, :validate => :string, :required => true
15
- config :port, :validate => :number, :default => 9000
16
- config :proto, :validate => :string, :default => "http"
15
+ config :port, :validate => :number, :default => 9543
16
+ config :proto, :validate => :string, :default => "https"
17
17
  config :uuid, :validate => :string, :default => nil
18
+ config :verify, :validate => :boolean, :default => true
19
+ config :ca_file, :validate => :string, :default => nil
18
20
 
19
21
  config :flush_size, :validate => :number, :default => 100
20
22
  config :idle_flush_time, :validate => :number, :default => 1
@@ -35,13 +37,15 @@ class LogStash::Outputs::Loginsight < LogStash::Outputs::Base
35
37
  @uuid ||= ( @id or 0 ) # Default UUID
36
38
  @logger.debug("Starting up agent #{@uuid}")
37
39
  @url = "#{@proto}://#{@host}:#{@port}/api/v1/events/ingest/#{@uuid}"
38
-
39
- @client = Manticore::Client.new(headers: {"Content-Type" => "application/json"})
40
40
 
41
- #@client.use_ssl = true
42
- #@client.verify_mode = OpenSSL::SSL::VERIFY_NONE
41
+ if @proto == "https"
42
+ @client = Manticore::Client.new(headers: {"Content-Type" => "application/json"} , ssl:{ verify: @verify , ca_file: @ca_file } )
43
+ else
44
+ @client = Manticore::Client.new(headers: {"Content-Type" => "application/json"} )
45
+ end
46
+
43
47
  @logger.debug("Client", :client => @client)
44
-
48
+
45
49
  buffer_initialize(
46
50
  :max_items => @flush_size,
47
51
  :max_interval => @idle_flush_time,
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-loginsight'
3
- s.version = '0.1.13'
3
+ s.version = '0.2.0'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Output events to a Log Insight server. This uses the Ingestion API protocol.'
6
6
  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 logstash-output-loginsight. This gem is not a stand-alone program.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-loginsight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Castonguay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement