fluent-plugin-out-kivera 1.0.2 → 1.0.3

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: '0786fbc8d55e7954af817ef554758dd69ce532db13f6cf448a84beb1cf54fec5'
4
- data.tar.gz: 140006b1217e9c98e32f5338ad96160361917d234ba8cf55b7dda891bf8d7388
3
+ metadata.gz: 93e7ed223cfaa53edf159ae6a4602966afa84dd04023923f732bb1902c19952d
4
+ data.tar.gz: 3e16ba998bfa8c1d3003213bcf781850ece988e2050b118eefc8b9f9906207c4
5
5
  SHA512:
6
- metadata.gz: '0218466cb92d206906fdfca7491fb0a7485f4df13f08372c36f9f99aec5081e4eca6cccd499eb4341dbae2bec624ffacd5142ab63959d96157a0a07d70448724'
7
- data.tar.gz: e0c964d575be14e3d333f541e5f04a727f00d798e38d6b6f6c2909edbe489dc77bd95e007b410698ed7cdc93d82211ab656a416927b5cfb86f7792902cb69975
6
+ metadata.gz: d575623311f414a46021315716101662dc4bc44afb4ebb7132785f327ae6d7450c790960565e512f62a03e1bc9bd6ee6cd91b5626ad3155b2c9ca4c51bc070a9
7
+ data.tar.gz: 29a029c065284af570b2b68756eca62de9006bb52492819078ccb4f169c6d79d4a841041f17ac8b07823ccf3dfd8e84c4b43be8a60a20deb7ada8d0af3d0c3f7
data/Makefile ADDED
@@ -0,0 +1,12 @@
1
+ SHELL=/bin/bash
2
+ .ONESHELL:
3
+ .EXPORT_ALL_VARIABLES:
4
+
5
+ build:
6
+ @if [ "${VER}" = "" ]; then echo "VER not set"; exit 1; else echo "VER=${VER}"; fi
7
+ sed -i 's/ gem.version.*/ gem.version = "${VER}"/g' fluent-plugin-out-kivera.gemspec
8
+ gem build fluent-plugin-out-kivera
9
+
10
+ push:
11
+ @if [ "${VER}" = "" ]; then echo "VER not set"; exit 1; else echo "VER=${VER}"; fi
12
+ gem push fluent-plugin-out-kivera-${VER}.gem
data/README.md CHANGED
@@ -6,39 +6,43 @@ A generic [fluentd][1] output plugin for sending Kivera proxy logs to the Kivera
6
6
 
7
7
  You can specify the path to a config.json file which can contain the following parameters:
8
8
 
9
- *config.json*
10
- {
9
+ *config.json*
10
+ ```
11
+ {
11
12
  "client_id": "",
12
13
  "client_secret": "",
13
14
  "audience": "",
14
15
  "auth0_domain": "",
15
16
  "auth0_cert": "",
16
17
  "auth0_cert_file": ""
17
- }
18
+ }
19
+ ```
18
20
 
19
21
  Note that parameter specified within the config_file will take precendence over parameters specified in your fluent.conf.
20
22
  Also note that the auth0_cert parameter will take precedence over the auth0_cert_file parameter.
21
23
 
22
- *fluent.conf*
23
- <match *>
24
- @type kivera
25
- endpoint_url http://localhost.local/api/
26
- config_file /path/to/config_file.json
27
- client_id abc123
28
- client_secret def456
29
- audience http://api.kivera.io
30
- auth0_domain auth.nonp.kivera.io
31
- auth0_cert -----BEGIN CERTIFICATE-----...
32
- auth0_cert_file /path/to/auth0_cert_file
33
- ssl_no_verify false # default: false
34
- rate_limit_msec 100 # default: 0 = no rate limiting
35
- raise_on_error false # default: true
36
- recoverable_status_codes 503, 400 # default: 503
37
- custom_headers {"token":"arbitrary"} # default: nil
38
- buffered true # default: false. Switch non-buffered/buffered mode
39
- bulk_request true # default: true. Send events as application/x-ndjson
40
- compress_request true # default: false. Send compressed events
41
- </match>
24
+ *fluent.conf*
25
+ ```
26
+ <match *>
27
+ @type kivera
28
+ endpoint_url http://localhost.local/api/
29
+ config_file /path/to/config_file.json
30
+ client_id abc123
31
+ client_secret def456
32
+ audience http://api.kivera.io
33
+ auth0_domain auth.nonp.kivera.io
34
+ auth0_cert -----BEGIN CERTIFICATE-----...
35
+ auth0_cert_file /path/to/auth0_cert_file
36
+ ssl_no_verify false # default: false
37
+ rate_limit_msec 100 # default: 0 = no rate limiting
38
+ raise_on_error false # default: true
39
+ recoverable_status_codes 503, 400 # default: 503
40
+ custom_headers {"token":"arbitrary"} # default: nil
41
+ buffered true # default: false. Switch non-buffered/buffered mode
42
+ bulk_request true # default: true. Send events as application/x-ndjson
43
+ compress_request true # default: false. Send compressed events
44
+ </match>
45
+ ```
42
46
 
43
47
  ## Usage notes
44
48
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-out-kivera"
5
- gem.version = "1.0.2"
5
+ gem.version = "1.0.3"
6
6
  gem.authors = ["Tyler Matheson"]
7
- gem.email = ["support@kivera.io"]
7
+ gem.email = ["tyler@kivera.io"]
8
8
  gem.summary = "Fluentd plugin for Kivera"
9
9
  gem.description = "A Fluentd output plugin for sending Kivera proxy logs to the Kivera log ingestion service"
10
10
  gem.homepage = "https://github.com/kivera-io/fluent-plugin-out-kivera"
@@ -133,11 +133,11 @@ class Fluent::Plugin::HTTPOutput < Fluent::Plugin::Output
133
133
  @auth0_cert.empty? &&
134
134
  @auth0_domain.empty?
135
135
  params = "client_id, client_secret, audience, auth0_cert and auth0_domain"
136
- log.error "Missing configuration. Either specify a config_file or set the #{params} parameters"
136
+ raise Fluent::ConfigError, "Missing configuration. Either specify a config_file or set the #{params} parameters"
137
137
  end
138
138
 
139
139
  if @endpoint_url.empty?
140
- @endpoint_url = "https://logs.#{@auth0_domain.delete_prefix("auth.")}"
140
+ @endpoint_url = "https://#{@auth0_domain.sub("auth", "logs")}"
141
141
  log.info "Using logs endpoint #{@endpoint_url}"
142
142
  end
143
143
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-out-kivera
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Matheson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2021-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby
@@ -103,7 +103,7 @@ dependencies:
103
103
  description: A Fluentd output plugin for sending Kivera proxy logs to the Kivera log
104
104
  ingestion service
105
105
  email:
106
- - support@kivera.io
106
+ - tyler@kivera.io
107
107
  executables: []
108
108
  extensions: []
109
109
  extra_rdoc_files: []
@@ -115,6 +115,7 @@ files:
115
115
  - Gemfile
116
116
  - ISSUE_TEMPLATE.md
117
117
  - LICENSE.txt
118
+ - Makefile
118
119
  - README.md
119
120
  - Rakefile
120
121
  - fluent-plugin-out-kivera.gemspec