logstash-output-loginsight 0.1.13 → 0.2.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/lib/logstash/outputs/loginsight.rb +11 -7
- data/logstash-output-loginsight.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 236d9a7c83a11fba824f0c7ccf4339167c8ac64f
|
4
|
+
data.tar.gz: 2944deae252cf72fa06d94ec6deb961dfe3ba614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =>
|
16
|
-
config :proto, :validate => :string, :default => "
|
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
|
-
|
42
|
-
|
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.
|
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.
|
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-
|
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
|