mantis-logstash-output-solr_http 3.0.5.pre.m7 → 3.0.5.pre.m8

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
  SHA256:
3
- metadata.gz: f735c18f43f00aac005685a8e8c49ba24be8048f560a8398296d4159504255d3
4
- data.tar.gz: 74a3dcbd38232e449b321ec2d4063b35679dc53bc998a1d6742eb6865472f52f
3
+ metadata.gz: 79d7f05566f4d7f60b61abdcf1cf553ae42dab506fa9964c49f43598c1e4e965
4
+ data.tar.gz: a24c9211fc9e53aead695fb99493ef55ead1110e4862c94782005ba3d3bc303b
5
5
  SHA512:
6
- metadata.gz: 5551adfc408a96f65f682d8d20d9f5e851be3cbd5df6c40877a71b6cb32ba31712d53e3f7c1dc784daaaed1fd4c0706895b58c1332360214f4459fbdc2ba40dc
7
- data.tar.gz: cf65e3e81d6278c55a8d7ee5328c8f164f8fcbd68b00c1ca1f136711860a33ba71c2587cb1f50698313b6e1c404edb35990702ca72f1782d7ae5f9d4df837101
6
+ metadata.gz: ce0f63ac7e8a2907c0a3decd39ccfa734eab30939f91036320fe51fed29031b806c5404d7592a46ddc5df8ae68950c6c62b77e3d9d0ff02150a12cc6ba17ea04
7
+ data.tar.gz: 136a7898e65489aecfb61bfa27307123379867263eec42008b6b51672f99c3e43828d30a77c0e3c588bb46e629b0ee6ef1ff4e5064b479e48a1d3b812a9f26bd
@@ -38,8 +38,10 @@ class LogStash::Outputs::SolrHTTP < LogStash::Outputs::Base
38
38
  # Solr document ID for events. You'd typically have a variable here, like
39
39
  # '%{foo}' so you can assign your own IDs
40
40
  config :document_id, :validate => :string, :default => nil
41
- config :document_id_field, :validate => :string, :default => "id"
42
41
 
42
+ # Solr field name of document ID field name.
43
+ config :document_id_field, :validate => :string, :default => "id"
44
+
43
45
  public
44
46
  def register
45
47
  require "rsolr"
@@ -52,24 +54,20 @@ class LogStash::Outputs::SolrHTTP < LogStash::Outputs::Base
52
54
 
53
55
  public
54
56
  def receive(event)
55
-
56
57
  buffer_receive(event)
57
58
  end #def receive
58
59
 
59
60
  public
60
61
  def flush(events, close=false)
61
62
  documents = Hash.new #this is the map of hashes that we push to Solr as documents
62
-
63
63
  events.each do |event|
64
64
  url = event.sprintf(@solr_url) # solr url sprintf
65
65
 
66
66
  if documents[url].nil?
67
67
  documents[url]=[] # create a new array to url
68
68
  @logger.debug("new url created [#{url}]")
69
- end
70
-
71
- document = event.to_hash()
72
-
69
+ end
70
+ document = event.to_hash()
73
71
  if @document_id.nil?
74
72
  document [@document_id_field] = UUIDTools::UUID.random_create #add a unique ID
75
73
  else
@@ -90,4 +88,4 @@ class LogStash::Outputs::SolrHTTP < LogStash::Outputs::Base
90
88
  rescue Exception => e
91
89
  @logger.warn("An error occurred while indexing: #{e.message}")
92
90
  end #def flush
93
- end #class LogStash::Outputs::SolrHTTP
91
+ end #class LogStash::Outputs::SolrHTTP
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'mantis-logstash-output-solr_http'
4
- s.version = '3.0.5-m7'
4
+ s.version = '3.0.5-m8'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Stores and indexes logs in Solr"
7
7
  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 gemname. This gem is not a stand-alone program"
8
8
  s.authors = ["Elastic"]
9
- s.email = 'info@mantis.com.tr'
10
- s.homepage = "https://github.com/mantis-software-company/logstash-output-solr_http"
9
+ s.email = 'info@elastic.co'
10
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mantis-logstash-output-solr_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5.pre.m7
4
+ version: 3.0.5.pre.m8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
@@ -89,7 +89,7 @@ dependencies:
89
89
  description: This gem is a Logstash plugin required to be installed on top of the
90
90
  Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
91
91
  gem is not a stand-alone program
92
- email: info@mantis.com.tr
92
+ email: info@elastic.co
93
93
  executables: []
94
94
  extensions: []
95
95
  extra_rdoc_files: []
@@ -104,7 +104,7 @@ files:
104
104
  - lib/logstash/outputs/solr_http.rb
105
105
  - logstash-output-solr_http.gemspec
106
106
  - spec/outputs/solr_http_spec.rb
107
- homepage: https://github.com/mantis-software-company/logstash-output-solr_http
107
+ homepage: http://www.elastic.co/guide/en/logstash/current/index.html
108
108
  licenses:
109
109
  - Apache License (2.0)
110
110
  metadata: