logstash-output-google_bigquery 2.0.6 → 3.0.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: 34a141fe1a35f5b762787fc94ba8e33b80af5fee
4
- data.tar.gz: 22c6ada4627fd4c6d8f6c02f2e1830e823caf6f9
3
+ metadata.gz: 252d36cb233bdce9f76859605b9013e7a00b8bf0
4
+ data.tar.gz: 38062503ced059df689a884be8a8ead32c9bca3a
5
5
  SHA512:
6
- metadata.gz: 2c53eb5b412d72b15a3d0195f03a1e5f27d99ff12a2004fe472f33f1c0ea3fd3996e3507e1b04eefe200d2c5d55a2048363ae69a936b19290784aba51527e033
7
- data.tar.gz: ae98407e1aa2807796f374b6b0ec50ba073570ad35367085a5984242fefe0aad40745adaab803ac5bd1ef3fa4a5b33b4ef2df07c2f92fc1d6761fea7ff503ab0
6
+ metadata.gz: 61c4ba1ee2ae88ef2f9b5f44921fc73cf24a72e7a040bd8206001b145c5cae70f325be26dd2ce3cb667ce414b07b43a3e2b2b455cb87a81bb07d26af98286702
7
+ data.tar.gz: fe766d46dab27aabaad4f1102f2499fa85668437586dea8725c62743f600a323b69bf1e14a485eb81221e7180ae065644cfcf789b96b99fedcb7832c9c260f42
data/CHANGELOG.md CHANGED
@@ -1,10 +1,15 @@
1
- # 2.0.6
2
- - Pin version of gems whose latest releases only work with ruby 2.x
1
+ ## 3.0.0
2
+ - Breaking: Updated plugin to use new Java Event APIs
3
+ - relax contrains on logstash-core-plugin-api
4
+ - mark this plugin as concurrency :single
5
+ - update .travis.yml
3
6
 
4
- # 2.0.5
7
+ ## 2.0.5
5
8
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
6
- # 2.0.4
9
+
10
+ ## 2.0.4
7
11
  - New dependency requirements for logstash-core for the 5.0 release
12
+
8
13
  ## 2.0.3
9
14
  - Add support for specifying schema as a hash
10
15
  - Bubble up error message that BQ returns on an error
@@ -89,6 +89,8 @@ require "logstash/json"
89
89
  class LogStash::Outputs::GoogleBigQuery < LogStash::Outputs::Base
90
90
  config_name "google_bigquery"
91
91
 
92
+ concurrency :single
93
+
92
94
  # Google Cloud Project ID (number, not Project Name!).
93
95
  config :project_id, :validate => :string, :required => true
94
96
 
@@ -208,12 +210,10 @@ class LogStash::Outputs::GoogleBigQuery < LogStash::Outputs::Base
208
210
  # file, flushing depending on flush interval configuration.
209
211
  public
210
212
  def receive(event)
211
-
212
-
213
213
  @logger.debug("BQ: receive method called", :event => event)
214
214
 
215
215
  # Message must be written as json
216
- message = event.to_json
216
+ message = LogStash::Json.dump(event.to_hash)
217
217
  # Remove "@" from property names
218
218
  message = message.gsub(/\"@(\w+)\"/, '"\1"')
219
219
 
@@ -1,7 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
-
3
2
  s.name = 'logstash-output-google_bigquery'
4
- s.version = '2.0.6'
3
+ s.version = '3.0.0'
5
4
  s.licenses = ['Apache License (2.0)']
6
5
  s.summary = "Plugin to upload log events to Google BigQuery (BQ)"
7
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 gemname. This gem is not a stand-alone program"
@@ -20,8 +19,10 @@ Gem::Specification.new do |s|
20
19
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
20
 
22
21
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
24
- s.add_runtime_dependency 'google-api-client', "~> 0.8.7" # version 0.9.x needs ruby 2.x
22
+ s.add_runtime_dependency 'google-api-client', '0.8.7'
23
+ s.add_runtime_dependency 'logstash-codec-plain'
24
+ s.add_runtime_dependency 'mime-types', '2.6.2'
25
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
25
26
 
26
27
  s.add_development_dependency 'logstash-devutils'
27
28
  end
metadata CHANGED
@@ -1,43 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-google_bigquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-13 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: '1.0'
19
- name: logstash-core-plugin-api
18
+ version: 0.8.7
19
+ name: google-api-client
20
20
  prerelease: false
21
21
  type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: 0.8.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - "~>"
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.8.7
33
- name: google-api-client
32
+ version: '0'
33
+ name: logstash-codec-plain
34
34
  prerelease: false
35
35
  type: :runtime
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.8.7
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '='
45
+ - !ruby/object:Gem::Version
46
+ version: 2.6.2
47
+ name: mime-types
48
+ prerelease: false
49
+ type: :runtime
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.6.2
55
+ - !ruby/object:Gem::Dependency
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '1.60'
61
+ - - "<="
62
+ - !ruby/object:Gem::Version
63
+ version: '2.99'
64
+ name: logstash-core-plugin-api
65
+ prerelease: false
66
+ type: :runtime
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '1.60'
72
+ - - "<="
73
+ - !ruby/object:Gem::Version
74
+ version: '2.99'
41
75
  - !ruby/object:Gem::Dependency
42
76
  requirement: !ruby/object:Gem::Requirement
43
77
  requirements: