logstash-output-stackdriver_logging 0.1.0 → 0.1.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ab40031a4d82e5073f72f3ca877bea35f017adce2cb4c783aae7953c747f1b2
|
4
|
+
data.tar.gz: 047c025efe95942ecb5103bbf8736112e3d147f40c9d43414c2b55310322b9a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62e8bb7fb2e280d2439be0e92a7ee3a8ed934891e63899baa7bd907442bc68a4dfa15830ada6e18c4ae34920d0cbe27f6afdeb0f3ea97c6c33a9b2151dec7f40
|
7
|
+
data.tar.gz: 9569a5abd5797b94820842ba0cc69ec44c03903016f9427d3f4803b154357670251922ae587f4dde976332a2ba2b99abef2496458584b996195bbc959f0831bb
|
@@ -101,11 +101,11 @@ class LogStash::Outputs::StackdriverLogging < LogStash::Outputs::Base
|
|
101
101
|
# project_id is not defined. Try to extract it from teh metadata server.
|
102
102
|
unless @project_id
|
103
103
|
if Google::Auth::GCECredentials.on_gce?
|
104
|
-
connection = Faraday::Connection.new("http://169.254.169.254/computeMetadata/v1/"
|
104
|
+
connection = Faraday::Connection.new("http://169.254.169.254/computeMetadata/v1/")
|
105
105
|
connection.headers = { "Metadata-Flavor": "Google" }
|
106
106
|
response = connection.get "project/project-id"
|
107
107
|
|
108
|
-
if response.status
|
108
|
+
if response.status == 200
|
109
109
|
@project_id = response.body.to_s.strip
|
110
110
|
end
|
111
111
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-stackdriver_logging'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.2'
|
4
4
|
s.licenses = ['MIT']
|
5
5
|
s.summary = "Writes payloads to Stackdriver Logging."
|
6
6
|
s.description = ""
|
7
7
|
s.authors = ["Geoff Garbers"]
|
8
8
|
s.email = "geoff@garbers.co.za"
|
9
|
-
s.homepage = "https://github.com/garbetjie/logstash-output-
|
9
|
+
s.homepage = "https://github.com/garbetjie/logstash-output-stackdriver_logging"
|
10
10
|
s.require_paths = %w(lib generated)
|
11
11
|
|
12
12
|
# Files
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-stackdriver_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoff Garbers
|
@@ -102,7 +102,7 @@ files:
|
|
102
102
|
- lib/logstash/outputs/stackdriver_logging.rb
|
103
103
|
- logstash-output-stackdriver_logging.gemspec
|
104
104
|
- spec/outputs/stackdriver_logging_spec.rb
|
105
|
-
homepage: https://github.com/garbetjie/logstash-output-
|
105
|
+
homepage: https://github.com/garbetjie/logstash-output-stackdriver_logging
|
106
106
|
licenses:
|
107
107
|
- MIT
|
108
108
|
metadata:
|