fluent-plugin-logsene 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca8ef1aed89ffc6b52d503fdd5152045899e96e6
4
- data.tar.gz: 94fcddfb174dfc05f3c5358c4458fdc45c65a510
3
+ metadata.gz: 3604a6dfbefa0070e4087fa3e0a29671b0722c3a
4
+ data.tar.gz: 77e74d4bbe60f8af35b3d5eb970df19b4263c735
5
5
  SHA512:
6
- metadata.gz: 82d588f4478569a484627401fc7656cea19b12536513a727c3ecfd762d89818f8f10bdef74c022c49ad1cb9d62a5c778539d60b37ba34bcff190152808de1e50
7
- data.tar.gz: 6af98fffae9e55ab20ed0471bc7d18215e6338af65350afab7874599cb351aae8464414b05070cc05dbf0c8b520cfcd44abad3be889ee70cb05ec71df6df83db
6
+ metadata.gz: 74ff66bf6abef760605613c141221c0f1d428721619e4493940577be86d93c1a95ff8f556a79ef3cd62f47c442486ac92c1c5c77a36a262667d1809ef0f90d7b
7
+ data.tar.gz: 17f2f581cb7e2f6ccae571f9ecb5e7f002bcd0a1fdf34c765ca7abb95406dcce440cae373221f5f3754c5d8fac4ee1d33355114564b541e4d3bd808c86677465
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-logsene"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["Sematext"]
9
9
  spec.email = ["info@sematext.com"]
10
10
  spec.description = %q{fluent plugin for logsene}
@@ -5,10 +5,11 @@ require 'date'
5
5
  class Fluent::LogseneOutput< Fluent::BufferedOutput
6
6
  Fluent::Plugin.register_output('logsene', self)
7
7
 
8
- config_param :host, :string, :default => 'logsene-receiver.sematext.com'
9
- config_param :port, :integer, :default => 80
10
- config_param :path, :string, :default => ''
11
- config_param :format, :string, :default => 'json'
8
+ config_param :host, :string, :default => 'logsene-receiver.sematext.com'
9
+ config_param :port, :integer, :default => 80
10
+ config_param :path, :string, :default => ''
11
+ config_param :logtype, :string, :default => 'syslog'
12
+ config_param :format, :string, :default => 'json'
12
13
 
13
14
  include Fluent::SetTagKeyMixin
14
15
  config_set_default :include_tag_key, false
@@ -61,7 +62,7 @@ class Fluent::LogseneOutput< Fluent::BufferedOutput
61
62
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
62
63
  http.set_debug_output $stderr
63
64
 
64
- request = Net::HTTP::Post.new(@path)
65
+ request = Net::HTTP::Post.new(@path + "/" + @logtype)
65
66
  request.body = messages.join("\n")
66
67
  http.request(request)
67
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logsene
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sematext