logstash-output-google_cloud_storage 2.0.2 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f50eb109a23d16e0c1c6a3f5c876999a67b82ffb
4
- data.tar.gz: b600e43e76794ce62e8a321a69da5dc4915ec714
3
+ metadata.gz: e85fa164a746c7974fbc83a286213a9a2bab8e06
4
+ data.tar.gz: 71ce98db8bd762dd66292352728b6fc45a647565
5
5
  SHA512:
6
- metadata.gz: 932c94f6482718d543ad74532cf81da7a1efafc07c18f597569b2771fdf5f880926fc746fe841ba11508d3e388ec0d2860925c68e04e5ddfcff89b8314891205
7
- data.tar.gz: 2d4e8c4bb01ebe7bdd584d442fba4d4f48623939cc670d9b6fd6cd05707bc5eceef8080a7f8371695f5dc5936a81132e73c6f732efe23e4945d045a0e3bc2dfc
6
+ metadata.gz: d831eecff730465d8ed3afd7a6acd8f17f783934d8eb6e1d4867595c6c9eff2719aa33f6cc39c7f22965bea8d62a0e71ed6b35f4806ed946cb6b9c7fd2d03789
7
+ data.tar.gz: 7962ed07bf7903090af3f3ee72ddbbbfc03aa2f6184172edc0c3a0dd5c0de4985cc951283f7f86dc10c66c8b91fc800b1f831b602dd3a0d5e6e2b6c7b2c6bae2
data/CHANGELOG.md CHANGED
@@ -1,8 +1,21 @@
1
+ ## 3.0.0
2
+ - Breaking: Updated plugin to use new Java Event APIs
3
+ - relax contraints on logstash-core-plugin-api
4
+ - Update .travis.yml
5
+ - Freeze google-api-client and mime-types
6
+ - use concurrency :single
7
+
8
+ ## 2.0.4
9
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
10
+
11
+ ## 2.0.3
12
+ - New dependency requirements for logstash-core for the 5.0 release
13
+
1
14
  ## 2.0.0
2
15
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
16
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
4
17
  - Dependency on logstash-core update to 2.0
5
18
 
6
- # 0.2.0
19
+ ## 0.2.0
7
20
  - Changed the Google Cloud Storage API version to v1
8
21
  - Added simple test for plugin lookup
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Logstash Plugin
2
2
 
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-google_cloud_storage.svg)](https://travis-ci.org/logstash-plugins/logstash-output-google_cloud_storage)
4
+
3
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
6
 
5
7
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
@@ -53,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
53
55
  ```
54
56
  - Install plugin
55
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
56
62
  bin/plugin install --no-verify
63
+
57
64
  ```
58
65
  - Run Logstash with your plugin
59
66
  ```sh
@@ -71,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
71
78
  ```
72
79
  - Install the plugin from the Logstash home
73
80
  ```sh
74
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
75
87
  ```
76
88
  - Start Logstash and proceed to test the plugin
77
89
 
@@ -1,4 +1,3 @@
1
-
2
1
  # encoding: utf-8
3
2
  # Author: Rodrigo De Castro <rdc@google.com>
4
3
  # Date: 2013-09-20
@@ -18,6 +17,7 @@
18
17
  # limitations under the License.
19
18
  require "logstash/outputs/base"
20
19
  require "logstash/namespace"
20
+ require "logstash/json"
21
21
  require "zlib"
22
22
 
23
23
  # Summary: plugin to upload log events to Google Cloud Storage (GCS), rolling
@@ -68,6 +68,8 @@ require "zlib"
68
68
  class LogStash::Outputs::GoogleCloudStorage < LogStash::Outputs::Base
69
69
  config_name "google_cloud_storage"
70
70
 
71
+ concurrency :single
72
+
71
73
  # GCS bucket name, without "gs://" or any other prefix.
72
74
  config :bucket, :validate => :string, :required => true
73
75
 
@@ -135,12 +137,10 @@ class LogStash::Outputs::GoogleCloudStorage < LogStash::Outputs::Base
135
137
  # file, flushing depending on flush interval configuration.
136
138
  public
137
139
  def receive(event)
138
-
139
-
140
140
  @logger.debug("GCS: receive method called", :event => event)
141
141
 
142
142
  if (@output_format == "json")
143
- message = event.to_json
143
+ message = LogStash::Json.dump(event.to_hash)
144
144
  else
145
145
  message = event.to_s
146
146
  end
@@ -1,10 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
-
3
2
  s.name = 'logstash-output-google_cloud_storage'
4
- s.version = '2.0.2'
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 Cloud Storage (GCS)"
7
- s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
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"
8
7
  s.authors = ["Elastic"]
9
8
  s.email = 'info@elastic.co'
10
9
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -20,11 +19,12 @@ 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", ">= 2.0.0.beta2", "< 3.0.0"
22
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
23
 
25
24
  s.add_runtime_dependency 'stud'
26
- s.add_runtime_dependency 'google-api-client'
25
+ s.add_runtime_dependency 'google-api-client', '0.8.7'
27
26
  s.add_runtime_dependency 'logstash-codec-plain'
27
+ s.add_runtime_dependency 'mime-types', '2.6.2'
28
28
 
29
29
  s.add_development_dependency 'logstash-devutils'
30
30
  end
metadata CHANGED
@@ -1,39 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-google_cloud_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
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: 2015-10-14 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: 2.0.0.beta2
19
- - - <
18
+ version: '1.60'
19
+ - - "<="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.0.0
22
- name: logstash-core
21
+ version: '2.99'
22
+ name: logstash-core-plugin-api
23
23
  prerelease: false
24
24
  type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.0.beta2
30
- - - <
29
+ version: '1.60'
30
+ - - "<="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.0.0
32
+ version: '2.99'
33
33
  - !ruby/object:Gem::Dependency
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  name: stud
@@ -41,27 +41,27 @@ dependencies:
41
41
  type: :runtime
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - '>='
50
+ - - '='
51
51
  - !ruby/object:Gem::Version
52
- version: '0'
52
+ version: 0.8.7
53
53
  name: google-api-client
54
54
  prerelease: false
55
55
  type: :runtime
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '>='
58
+ - - '='
59
59
  - !ruby/object:Gem::Version
60
- version: '0'
60
+ version: 0.8.7
61
61
  - !ruby/object:Gem::Dependency
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - '>='
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  name: logstash-codec-plain
@@ -69,13 +69,27 @@ dependencies:
69
69
  type: :runtime
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - '>='
78
+ - - '='
79
+ - !ruby/object:Gem::Version
80
+ version: 2.6.2
81
+ name: mime-types
82
+ prerelease: false
83
+ type: :runtime
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - '='
87
+ - !ruby/object:Gem::Version
88
+ version: 2.6.2
89
+ - !ruby/object:Gem::Dependency
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
79
93
  - !ruby/object:Gem::Version
80
94
  version: '0'
81
95
  name: logstash-devutils
@@ -83,10 +97,10 @@ dependencies:
83
97
  type: :development
84
98
  version_requirements: !ruby/object:Gem::Requirement
85
99
  requirements:
86
- - - '>='
100
+ - - ">="
87
101
  - !ruby/object:Gem::Version
88
102
  version: '0'
89
- description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
103
+ 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
90
104
  email: info@elastic.co
91
105
  executables: []
92
106
  extensions: []
@@ -114,12 +128,12 @@ require_paths:
114
128
  - lib
115
129
  required_ruby_version: !ruby/object:Gem::Requirement
116
130
  requirements:
117
- - - '>='
131
+ - - ">="
118
132
  - !ruby/object:Gem::Version
119
133
  version: '0'
120
134
  required_rubygems_version: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - '>='
136
+ - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  requirements: []