logstash-input-google_cloud_storage 0.9.0-java → 0.10.0-java
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/CHANGELOG.md +5 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +4 -3
- data/docs/index.asciidoc +224 -5
- data/lib/logstash-input-google_cloud_storage_jars.rb +32 -28
- data/lib/logstash/inputs/cloud_storage/blob_adapter.rb +0 -13
- data/lib/logstash/inputs/cloud_storage/blob_filter.rb +0 -14
- data/lib/logstash/inputs/cloud_storage/client.rb +0 -13
- data/lib/logstash/inputs/cloud_storage/file_reader.rb +2 -15
- data/lib/logstash/inputs/cloud_storage/processed_db.rb +0 -13
- data/lib/logstash/inputs/google_cloud_storage.rb +2 -15
- data/logstash-input-google_cloud_storage.gemspec +1 -1
- data/spec/inputs/cloud_storage/blob_adapter_spec.rb +0 -14
- data/spec/inputs/cloud_storage/blob_filter_spec.rb +0 -14
- data/spec/inputs/cloud_storage/client_spec.rb +1 -15
- data/spec/inputs/cloud_storage/file_reader_spec.rb +2 -16
- data/spec/inputs/cloud_storage/processed_db_spec.rb +0 -14
- data/spec/inputs/google_cloud_storage_spec.rb +1 -15
- data/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar +0 -0
- data/vendor/jar-dependencies/com/google/api-client/google-api-client/1.27.0/google-api-client-1.27.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/api-common/1.7.0/api-common-1.7.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/gax-httpjson/0.55.0/gax-httpjson-0.55.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/gax/1.38.0/gax-1.38.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/grpc/proto-google-common-protos/{1.7.0/proto-google-common-protos-1.7.0.jar → 1.12.0/proto-google-common-protos-1.12.0.jar} +0 -0
- data/vendor/jar-dependencies/com/google/api/grpc/proto-google-iam-v1/{0.8.0/proto-google-iam-v1-0.8.0.jar → 0.12.0/proto-google-iam-v1-0.12.0.jar} +0 -0
- data/vendor/jar-dependencies/com/google/apis/google-api-services-storage/v1-rev20181109-1.27.0/google-api-services-storage-v1-rev20181109-1.27.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/auth/google-auth-library-credentials/0.12.0/google-auth-library-credentials-0.12.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/auth/google-auth-library-oauth2-http/0.12.0/google-auth-library-oauth2-http-0.12.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/cloud/google-cloud-core-http/1.62.0/google-cloud-core-http-1.62.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/cloud/google-cloud-core/1.62.0/google-cloud-core-1.62.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/cloud/google-cloud-storage/1.62.0/google-cloud-storage-1.62.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar +0 -0
- data/vendor/jar-dependencies/com/google/guava/guava/26.0-android/guava-26.0-android.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client-appengine/1.27.0/google-http-client-appengine-1.27.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client-jackson2/1.27.0/google-http-client-jackson2-1.27.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client/1.27.0/google-http-client-1.27.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/oauth-client/google-oauth-client/1.27.0/google-oauth-client-1.27.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/protobuf/protobuf-java-util/3.6.1/protobuf-java-util-3.6.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.1.jar +0 -0
- data/vendor/jar-dependencies/commons-codec/commons-codec/1.10/commons-codec-1.10.jar +0 -0
- data/vendor/jar-dependencies/commons-logging/commons-logging/1.2/commons-logging-1.2.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-context/1.14.0/grpc-context-1.14.0.jar +0 -0
- data/vendor/jar-dependencies/io/opencensus/opencensus-api/0.17.0/opencensus-api-0.17.0.jar +0 -0
- data/vendor/jar-dependencies/io/opencensus/opencensus-contrib-http-util/0.17.0/opencensus-contrib-http-util-0.17.0.jar +0 -0
- data/vendor/jar-dependencies/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar +0 -0
- data/vendor/jar-dependencies/org/apache/httpcomponents/httpclient/4.5.5/httpclient-4.5.5.jar +0 -0
- data/vendor/jar-dependencies/org/apache/httpcomponents/httpcore/4.4.9/httpcore-4.4.9.jar +0 -0
- data/vendor/jar-dependencies/org/checkerframework/checker-compat-qual/2.5.2/checker-compat-qual-2.5.2.jar +0 -0
- data/vendor/jar-dependencies/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar +0 -0
- metadata +34 -34
- data/docs/configuration.asciidoc +0 -112
- data/docs/examples.asciidoc +0 -84
- data/docs/metadata.asciidoc +0 -20
- data/docs/resources.asciidoc +0 -6
- data/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.1.3/jackson-core-2.1.3.jar +0 -0
- data/vendor/jar-dependencies/com/google/api-client/google-api-client/1.23.0/google-api-client-1.23.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/api-common/1.5.0/api-common-1.5.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/gax-httpjson/0.40.0/gax-httpjson-0.40.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/gax/1.23.0/gax-1.23.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/apis/google-api-services-storage/v1-rev114-1.23.0/google-api-services-storage-v1-rev114-1.23.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/auth/google-auth-library-credentials/0.9.0/google-auth-library-credentials-0.9.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/auth/google-auth-library-oauth2-http/0.9.0/google-auth-library-oauth2-http-0.9.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/cloud/google-cloud-core-http/1.25.0/google-cloud-core-http-1.25.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/cloud/google-cloud-core/1.25.0/google-cloud-core-1.25.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/cloud/google-cloud-storage/1.25.0/google-cloud-storage-1.25.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/guava/guava/20.0/guava-20.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client-appengine/1.23.0/google-http-client-appengine-1.23.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client-jackson2/1.23.0/google-http-client-jackson2-1.23.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client/1.23.0/google-http-client-1.23.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/oauth-client/google-oauth-client/1.23.0/google-oauth-client-1.23.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/protobuf/protobuf-java-util/3.5.1/protobuf-java-util-3.5.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/protobuf/protobuf-java/3.5.1/protobuf-java-3.5.1.jar +0 -0
- data/vendor/jar-dependencies/commons-codec/commons-codec/1.3/commons-codec-1.3.jar +0 -0
- data/vendor/jar-dependencies/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-context/1.9.0/grpc-context-1.9.0.jar +0 -0
- data/vendor/jar-dependencies/io/opencensus/opencensus-api/0.11.1/opencensus-api-0.11.1.jar +0 -0
- data/vendor/jar-dependencies/io/opencensus/opencensus-contrib-http-util/0.11.1/opencensus-contrib-http-util-0.11.1.jar +0 -0
- data/vendor/jar-dependencies/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar +0 -0
- data/vendor/jar-dependencies/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar +0 -0
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
3
|
require 'fileutils'
|
|
17
4
|
require 'digest'
|
|
18
5
|
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
3
|
require 'logstash/inputs/base'
|
|
17
4
|
require 'logstash/namespace'
|
|
18
5
|
require 'stud/interval'
|
|
@@ -21,7 +8,7 @@ require 'logstash/inputs/cloud_storage/processed_db'
|
|
|
21
8
|
require 'logstash/inputs/cloud_storage/blob_filter'
|
|
22
9
|
require 'logstash/inputs/cloud_storage/file_reader'
|
|
23
10
|
|
|
24
|
-
# GoogleCloudStorage is an input plugin for
|
|
11
|
+
# GoogleCloudStorage is an input plugin for Logstash that
|
|
25
12
|
# reads blobs in Cloud Storage buckets.
|
|
26
13
|
class LogStash::Inputs::GoogleCloudStorage < LogStash::Inputs::Base
|
|
27
14
|
config_name 'google_cloud_storage'
|
|
@@ -30,7 +17,7 @@ class LogStash::Inputs::GoogleCloudStorage < LogStash::Inputs::Base
|
|
|
30
17
|
|
|
31
18
|
# Connection Settings
|
|
32
19
|
config :bucket_id, :validate => :string, :required => true
|
|
33
|
-
config :json_key_file, :validate => :string, :default =>
|
|
20
|
+
config :json_key_file, :validate => :string, :default => ''
|
|
34
21
|
config :interval, :validate => :number, :default => 60
|
|
35
22
|
|
|
36
23
|
# Inclusion/Exclusion Criteria
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'logstash-input-google_cloud_storage'
|
|
3
|
-
s.version = '0.
|
|
3
|
+
s.version = '0.10.0'
|
|
4
4
|
s.licenses = ['Apache-2.0']
|
|
5
5
|
s.summary = 'Plugin to import log data from Google Cloud Storage (GCS).'
|
|
6
6
|
s.description = 'This gem is a Logstash plugin required to be installed on top of the '\
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
3
|
require 'logstash/devutils/rspec/spec_helper'
|
|
18
4
|
require 'logstash/inputs/google_cloud_storage'
|
|
19
5
|
require 'logstash/inputs/cloud_storage/blob_adapter'
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
3
|
require 'logstash/devutils/rspec/spec_helper'
|
|
18
4
|
require 'logstash/inputs/google_cloud_storage'
|
|
19
5
|
require 'logstash/inputs/cloud_storage/blob_filter'
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
3
|
require 'logstash/devutils/rspec/spec_helper'
|
|
18
4
|
require 'logstash/inputs/google_cloud_storage'
|
|
19
5
|
require 'logstash/inputs/cloud_storage/client'
|
|
@@ -30,4 +16,4 @@ describe LogStash::Inputs::CloudStorage::Client do
|
|
|
30
16
|
LogStash::Inputs::CloudStorage::Client.new('my-bucket', key_file, logger)
|
|
31
17
|
end
|
|
32
18
|
end
|
|
33
|
-
end
|
|
19
|
+
end
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
3
|
require 'logstash/devutils/rspec/spec_helper'
|
|
18
4
|
require 'logstash/inputs/google_cloud_storage'
|
|
19
5
|
require 'logstash/inputs/cloud_storage/file_reader'
|
|
@@ -48,7 +34,7 @@ describe LogStash::Inputs::CloudStorage::FileReader do
|
|
|
48
34
|
let(:path) { ::File.join('spec', 'fixtures', 'helloworld.log') }
|
|
49
35
|
|
|
50
36
|
it 'reads plain files' do
|
|
51
|
-
expected = [[
|
|
37
|
+
expected = [["hello\n", 1], ["world\n", 2]]
|
|
52
38
|
|
|
53
39
|
out = []
|
|
54
40
|
LogStash::Inputs::CloudStorage::FileReader.read_plain_lines(path) do |text, linenum|
|
|
@@ -63,7 +49,7 @@ describe LogStash::Inputs::CloudStorage::FileReader do
|
|
|
63
49
|
let(:path) { ::File.join('spec', 'fixtures', 'helloworld.log.gz') }
|
|
64
50
|
|
|
65
51
|
it 'reads gzipped files' do
|
|
66
|
-
expected = [[
|
|
52
|
+
expected = [["hello\n", 1], ["world\n", 2]]
|
|
67
53
|
|
|
68
54
|
out = []
|
|
69
55
|
LogStash::Inputs::CloudStorage::FileReader.read_gzip_lines(path) do |text, linenum|
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
3
|
require 'logstash/devutils/rspec/spec_helper'
|
|
18
4
|
require 'logstash/inputs/google_cloud_storage'
|
|
19
5
|
require 'logstash/inputs/cloud_storage/processed_db'
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
# Copyright 2018 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
3
|
require 'logstash/devutils/rspec/spec_helper'
|
|
18
4
|
require 'logstash/inputs/google_cloud_storage'
|
|
19
5
|
require 'logstash/inputs/cloud_storage/client'
|
|
@@ -83,7 +69,7 @@ describe LogStash::Inputs::GoogleCloudStorage do
|
|
|
83
69
|
events = subject.event_output_queue
|
|
84
70
|
|
|
85
71
|
messages = events.map { |e| e.get('message') }
|
|
86
|
-
expect(messages).to eq([
|
|
72
|
+
expect(messages).to eq(["match.log1\r\n", "match.log2"])
|
|
87
73
|
|
|
88
74
|
filenames = events.map { |e| e.get('[@metadata][gcs][name]') }
|
|
89
75
|
expect(filenames).to eq(['match.log', 'match.log'])
|
data/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/vendor/jar-dependencies/com/google/cloud/google-cloud-core/1.62.0/google-cloud-core-1.62.0.jar
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/vendor/jar-dependencies/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/vendor/jar-dependencies/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: logstash-input-google_cloud_storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Elastic
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2019-02-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -95,11 +95,7 @@ files:
|
|
|
95
95
|
- Gemfile
|
|
96
96
|
- LICENSE
|
|
97
97
|
- README.md
|
|
98
|
-
- docs/configuration.asciidoc
|
|
99
|
-
- docs/examples.asciidoc
|
|
100
98
|
- docs/index.asciidoc
|
|
101
|
-
- docs/metadata.asciidoc
|
|
102
|
-
- docs/resources.asciidoc
|
|
103
99
|
- lib/logstash-input-google_cloud_storage_jars.rb
|
|
104
100
|
- lib/logstash/inputs/cloud_storage/blob_adapter.rb
|
|
105
101
|
- lib/logstash/inputs/cloud_storage/blob_filter.rb
|
|
@@ -117,40 +113,44 @@ files:
|
|
|
117
113
|
- spec/inputs/cloud_storage/file_reader_spec.rb
|
|
118
114
|
- spec/inputs/cloud_storage/processed_db_spec.rb
|
|
119
115
|
- spec/inputs/google_cloud_storage_spec.rb
|
|
120
|
-
- vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.
|
|
121
|
-
- vendor/jar-dependencies/com/google/api-client/google-api-client/1.
|
|
122
|
-
- vendor/jar-dependencies/com/google/api/api-common/1.
|
|
123
|
-
- vendor/jar-dependencies/com/google/api/gax-httpjson/0.
|
|
124
|
-
- vendor/jar-dependencies/com/google/api/gax/1.
|
|
125
|
-
- vendor/jar-dependencies/com/google/api/grpc/proto-google-common-protos/1.
|
|
126
|
-
- vendor/jar-dependencies/com/google/api/grpc/proto-google-iam-v1/0.
|
|
127
|
-
- vendor/jar-dependencies/com/google/apis/google-api-services-storage/v1-
|
|
128
|
-
- vendor/jar-dependencies/com/google/auth/google-auth-library-credentials/0.
|
|
129
|
-
- vendor/jar-dependencies/com/google/auth/google-auth-library-oauth2-http/0.
|
|
130
|
-
- vendor/jar-dependencies/com/google/cloud/google-cloud-core-http/1.
|
|
131
|
-
- vendor/jar-dependencies/com/google/cloud/google-cloud-core/1.
|
|
132
|
-
- vendor/jar-dependencies/com/google/cloud/google-cloud-storage/1.
|
|
133
|
-
- vendor/jar-dependencies/com/google/code/findbugs/jsr305/3.0.
|
|
116
|
+
- vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar
|
|
117
|
+
- vendor/jar-dependencies/com/google/api-client/google-api-client/1.27.0/google-api-client-1.27.0.jar
|
|
118
|
+
- vendor/jar-dependencies/com/google/api/api-common/1.7.0/api-common-1.7.0.jar
|
|
119
|
+
- vendor/jar-dependencies/com/google/api/gax-httpjson/0.55.0/gax-httpjson-0.55.0.jar
|
|
120
|
+
- vendor/jar-dependencies/com/google/api/gax/1.38.0/gax-1.38.0.jar
|
|
121
|
+
- vendor/jar-dependencies/com/google/api/grpc/proto-google-common-protos/1.12.0/proto-google-common-protos-1.12.0.jar
|
|
122
|
+
- vendor/jar-dependencies/com/google/api/grpc/proto-google-iam-v1/0.12.0/proto-google-iam-v1-0.12.0.jar
|
|
123
|
+
- vendor/jar-dependencies/com/google/apis/google-api-services-storage/v1-rev20181109-1.27.0/google-api-services-storage-v1-rev20181109-1.27.0.jar
|
|
124
|
+
- vendor/jar-dependencies/com/google/auth/google-auth-library-credentials/0.12.0/google-auth-library-credentials-0.12.0.jar
|
|
125
|
+
- vendor/jar-dependencies/com/google/auth/google-auth-library-oauth2-http/0.12.0/google-auth-library-oauth2-http-0.12.0.jar
|
|
126
|
+
- vendor/jar-dependencies/com/google/cloud/google-cloud-core-http/1.62.0/google-cloud-core-http-1.62.0.jar
|
|
127
|
+
- vendor/jar-dependencies/com/google/cloud/google-cloud-core/1.62.0/google-cloud-core-1.62.0.jar
|
|
128
|
+
- vendor/jar-dependencies/com/google/cloud/google-cloud-storage/1.62.0/google-cloud-storage-1.62.0.jar
|
|
129
|
+
- vendor/jar-dependencies/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
|
|
134
130
|
- vendor/jar-dependencies/com/google/code/gson/gson/2.7/gson-2.7.jar
|
|
135
131
|
- vendor/jar-dependencies/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar
|
|
136
132
|
- vendor/jar-dependencies/com/google/guava/guava-jdk5/17.0/guava-jdk5-17.0.jar
|
|
137
|
-
- vendor/jar-dependencies/com/google/guava/guava/
|
|
138
|
-
- vendor/jar-dependencies/com/google/http-client/google-http-client-appengine/1.
|
|
133
|
+
- vendor/jar-dependencies/com/google/guava/guava/26.0-android/guava-26.0-android.jar
|
|
134
|
+
- vendor/jar-dependencies/com/google/http-client/google-http-client-appengine/1.27.0/google-http-client-appengine-1.27.0.jar
|
|
139
135
|
- vendor/jar-dependencies/com/google/http-client/google-http-client-jackson/1.23.0/google-http-client-jackson-1.23.0.jar
|
|
140
|
-
- vendor/jar-dependencies/com/google/http-client/google-http-client-jackson2/1.
|
|
141
|
-
- vendor/jar-dependencies/com/google/http-client/google-http-client/1.
|
|
142
|
-
- vendor/jar-dependencies/com/google/
|
|
143
|
-
- vendor/jar-dependencies/com/google/
|
|
144
|
-
- vendor/jar-dependencies/com/google/protobuf/protobuf-java/3.
|
|
145
|
-
- vendor/jar-dependencies/
|
|
146
|
-
- vendor/jar-dependencies/commons-
|
|
147
|
-
- vendor/jar-dependencies/
|
|
148
|
-
- vendor/jar-dependencies/io/
|
|
149
|
-
- vendor/jar-dependencies/io/opencensus/opencensus-
|
|
136
|
+
- vendor/jar-dependencies/com/google/http-client/google-http-client-jackson2/1.27.0/google-http-client-jackson2-1.27.0.jar
|
|
137
|
+
- vendor/jar-dependencies/com/google/http-client/google-http-client/1.27.0/google-http-client-1.27.0.jar
|
|
138
|
+
- vendor/jar-dependencies/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
|
|
139
|
+
- vendor/jar-dependencies/com/google/oauth-client/google-oauth-client/1.27.0/google-oauth-client-1.27.0.jar
|
|
140
|
+
- vendor/jar-dependencies/com/google/protobuf/protobuf-java-util/3.6.1/protobuf-java-util-3.6.1.jar
|
|
141
|
+
- vendor/jar-dependencies/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.1.jar
|
|
142
|
+
- vendor/jar-dependencies/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
|
|
143
|
+
- vendor/jar-dependencies/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
|
|
144
|
+
- vendor/jar-dependencies/io/grpc/grpc-context/1.14.0/grpc-context-1.14.0.jar
|
|
145
|
+
- vendor/jar-dependencies/io/opencensus/opencensus-api/0.17.0/opencensus-api-0.17.0.jar
|
|
146
|
+
- vendor/jar-dependencies/io/opencensus/opencensus-contrib-http-util/0.17.0/opencensus-contrib-http-util-0.17.0.jar
|
|
147
|
+
- vendor/jar-dependencies/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar
|
|
150
148
|
- vendor/jar-dependencies/joda-time/joda-time/2.9.2/joda-time-2.9.2.jar
|
|
151
|
-
- vendor/jar-dependencies/org/apache/httpcomponents/httpclient/4.
|
|
152
|
-
- vendor/jar-dependencies/org/apache/httpcomponents/httpcore/4.
|
|
149
|
+
- vendor/jar-dependencies/org/apache/httpcomponents/httpclient/4.5.5/httpclient-4.5.5.jar
|
|
150
|
+
- vendor/jar-dependencies/org/apache/httpcomponents/httpcore/4.4.9/httpcore-4.4.9.jar
|
|
151
|
+
- vendor/jar-dependencies/org/checkerframework/checker-compat-qual/2.5.2/checker-compat-qual-2.5.2.jar
|
|
153
152
|
- vendor/jar-dependencies/org/codehaus/jackson/jackson-core-asl/1.9.11/jackson-core-asl-1.9.11.jar
|
|
153
|
+
- vendor/jar-dependencies/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
|
|
154
154
|
- vendor/jar-dependencies/org/threeten/threetenbp/1.3.3/threetenbp-1.3.3.jar
|
|
155
155
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
|
156
156
|
licenses:
|
data/docs/configuration.asciidoc
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
[id="plugins-{type}s-{plugin}-options"]
|
|
2
|
-
==== Google Cloud Storage Input Configuration Options
|
|
3
|
-
|
|
4
|
-
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
|
5
|
-
|
|
6
|
-
[cols="<,<,<",options="header",]
|
|
7
|
-
|=======================================================================
|
|
8
|
-
|Setting |Input type|Required
|
|
9
|
-
| <<plugins-{type}s-{plugin}-bucket_id>> |<<string,string>>|Yes
|
|
10
|
-
| <<plugins-{type}s-{plugin}-json_key_file>> |<<path,path>>|No
|
|
11
|
-
| <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|No
|
|
12
|
-
| <<plugins-{type}s-{plugin}-file_matches>> |<<string,string>>|No
|
|
13
|
-
| <<plugins-{type}s-{plugin}-file_exclude>> |<<string,string>>|No
|
|
14
|
-
| <<plugins-{type}s-{plugin}-metadata_key>> |<<string,string>>|No
|
|
15
|
-
| <<plugins-{type}s-{plugin}-processed_db_path>> |<<path,path>>|No
|
|
16
|
-
| <<plugins-{type}s-{plugin}-delete>> |<<boolean,boolean>>|No
|
|
17
|
-
| <<plugins-{type}s-{plugin}-unpack_gzip>> |<<boolean,boolean>>|No
|
|
18
|
-
|=======================================================================
|
|
19
|
-
|
|
20
|
-
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
|
21
|
-
input plugins.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[id="plugins-{type}s-{plugin}-bucket_id"]
|
|
25
|
-
===== `bucket_id`
|
|
26
|
-
|
|
27
|
-
* Value type is <<string,string>>
|
|
28
|
-
* There is no default value for this setting.
|
|
29
|
-
|
|
30
|
-
The bucket containing your log files.
|
|
31
|
-
|
|
32
|
-
[id="plugins-{type}s-{plugin}-json_key_file"]
|
|
33
|
-
===== `json_key_file`
|
|
34
|
-
|
|
35
|
-
* Value type is <<path,path>>
|
|
36
|
-
* There is no default value for this setting.
|
|
37
|
-
|
|
38
|
-
The path to the key to authenticate your user to the bucket.
|
|
39
|
-
This service user _should_ have the `storage.objects.update` permission so it can
|
|
40
|
-
create metadata on the object preventing it from being scanned multiple times.
|
|
41
|
-
|
|
42
|
-
[id="plugins-{type}s-{plugin}-interval"]
|
|
43
|
-
===== `interval`
|
|
44
|
-
|
|
45
|
-
* Value type is <<number,number>>
|
|
46
|
-
* Default is: `60`
|
|
47
|
-
|
|
48
|
-
The number of seconds between looking for new files in your bucket.
|
|
49
|
-
|
|
50
|
-
[id="plugins-{type}s-{plugin}-file_matches"]
|
|
51
|
-
===== `file_matches`
|
|
52
|
-
|
|
53
|
-
* Value type is <<string,string>>
|
|
54
|
-
* Default is: `.*\.log(\.gz)?`
|
|
55
|
-
|
|
56
|
-
A regex pattern to filter files. Only files with names matching this will be considered.
|
|
57
|
-
All files match by default.
|
|
58
|
-
|
|
59
|
-
[id="plugins-{type}s-{plugin}-file_exclude"]
|
|
60
|
-
===== `file_exclude`
|
|
61
|
-
|
|
62
|
-
* Value type is <<string,string>>
|
|
63
|
-
* Default is: `^$`
|
|
64
|
-
|
|
65
|
-
Any files matching this regex are excluded from processing.
|
|
66
|
-
No files are excluded by default.
|
|
67
|
-
|
|
68
|
-
[id="plugins-{type}s-{plugin}-metadata_key"]
|
|
69
|
-
===== `metadata_key`
|
|
70
|
-
|
|
71
|
-
* Value type is <<string,string>>
|
|
72
|
-
* Default is: `x-goog-meta-ls-gcs-input`
|
|
73
|
-
|
|
74
|
-
This key will be set on the objects after they've been processed by the plugin. That way you can
|
|
75
|
-
stop the plugin and not upload files again or prevent them from being uploaded by setting the
|
|
76
|
-
field manually.
|
|
77
|
-
|
|
78
|
-
NOTE: the key is a flag, if a file was partially processed before Logstash exited some events will be resent.
|
|
79
|
-
|
|
80
|
-
[id="plugins-{type}s-{plugin}-processed_db_path"]
|
|
81
|
-
===== `processed_db_path`
|
|
82
|
-
|
|
83
|
-
* Value type is <<path,path>>
|
|
84
|
-
* Default is: `LOGSTASH_DATA/plugins/inputs/google_cloud_storage/db`.
|
|
85
|
-
|
|
86
|
-
If set, the plugin will store the list of processed files locally.
|
|
87
|
-
This allows you to create a service account for the plugin that does not have write permissions.
|
|
88
|
-
However, the data will not be shared across multiple running instances of Logstash.
|
|
89
|
-
|
|
90
|
-
[id="plugins-{type}s-{plugin}-delete"]
|
|
91
|
-
===== `delete`
|
|
92
|
-
|
|
93
|
-
* Value type is <<boolean,boolean>>
|
|
94
|
-
* Default is: `false`
|
|
95
|
-
|
|
96
|
-
Should the log file be deleted after its contents have been updated?
|
|
97
|
-
|
|
98
|
-
[id="plugins-{type}s-{plugin}-unpack_gzip"]
|
|
99
|
-
===== `unpack_gzip`
|
|
100
|
-
|
|
101
|
-
* Value type is <<boolean,boolean>>
|
|
102
|
-
* Default is: `true`
|
|
103
|
-
|
|
104
|
-
If set to `true`, files ending in `.gz` are decompressed before they're parsed by the codec.
|
|
105
|
-
The file will be skipped if it has the suffix, but can't be opened as a gzip, e.g.
|
|
106
|
-
if it has a bad magic number.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
[id="plugins-{type}s-{plugin}-common-options"]
|
|
110
|
-
include::{include_path}/{type}.asciidoc[]
|
|
111
|
-
|
|
112
|
-
:default_codec!:
|