fluent-plugin-heroku-http 0.0.1 → 0.0.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
- SHA1:
3
- metadata.gz: 7ca19d23b247356da26186684ba7bf3b1deb163a
4
- data.tar.gz: 604198a9c89b1837212808f8af41ac28e3ec9078
2
+ SHA256:
3
+ metadata.gz: 00f52f0684d31b5fa4d898b4d34d1e5540ceab4c9ff3e0c7b9eb6f86158cd2a6
4
+ data.tar.gz: cc79b0c33654175c00c538d7cc0d6b1879778b570c43ca3eb09b57d4dbe3121a
5
5
  SHA512:
6
- metadata.gz: d83be177d2007478c0c2739ee6d3077dbb4a90eae4ac59684a2ee69dd66c74ad1f6c65c7e06f535e10207c297914f7c7b08a5c35e0e829d4c4b2d2b7ed8cef31
7
- data.tar.gz: 3236c2941623774f1d049f63d5a3a4c8c3318f776cd74c952f785d2944b7710a78ab25584690de35c49cbed134a4c9711b444bc42631cff2f29e7c7d7988858f
6
+ metadata.gz: cd432a9148589650e25061a7297973aa19fc93f70964edfc85eeb81b91a76054b793b1ebedcebf6c7a9630f59a8e93b709197ec7cbf6aacbb0b8181ec2ece692
7
+ data.tar.gz: 0edcd64c6172a5a3b543848e9b7eb2a19e404840010e84f56cd8c3bcc4f330b0446c708ce884747d71aa4896534a91e172dc45b6b81726cb2e7c2347c0f71392
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # fluent-plugin-heroku-http
2
2
 
3
3
  [![Build Status](https://travis-ci.org/ApplauseOSS/fluent-plugin-heroku-http.svg?branch=master)](https://travis-ci.org/ApplauseOSS/fluent-plugin-heroku-http)
4
+ [![Gem Version](https://badge.fury.io/rb/fluent-plugin-heroku-http.svg)](https://badge.fury.io/rb/fluent-plugin-heroku-http)
5
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http?ref=badge_shield)
4
6
 
5
7
  This is a [fluent](https://fluentd.org) input plugin to accept Heroku HTTPS
6
8
  log drains.
@@ -32,8 +34,8 @@ gem 'fluent-plugin-heroku-http'
32
34
 
33
35
  This plugin implements HerokuHttpInput which extends the built-in HttpInput
34
36
  plugin to accept RFC-5424 formatted syslog messages, framed using syslog TCP
35
- protocol octet counting framing method from RFC-6587, from [heroku syslog
36
- drains](https://devcenter.heroku.com/articles/log-drains#syslog-drains). This
37
+ protocol octet counting framing method from RFC-6587, from [Heroku HTTPS
38
+ drains](https://devcenter.heroku.com/articles/log-drains#https-drains). This
37
39
  plugin support all of the `in_http` plugin configuration parameters.
38
40
 
39
41
  ### Basic configuration
@@ -64,3 +66,7 @@ The fluent tag is parsed from the input request PATH, in the same way as the
64
66
  # add logdrain to heroku application
65
67
  $ heroku drains:add https://YOUR-FLUENTD-HOST/DESIRED-FLUENT-TAG
66
68
  ```
69
+
70
+
71
+ ## License
72
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http?ref=badge_large)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'fluent-plugin-heroku-http'
5
- gem.version = '0.0.1'
5
+ gem.version = '0.0.2'
6
6
  gem.authors = ['Platform Delivery']
7
7
  gem.email = ['ops@applause.com']
8
8
  gem.description = 'fluent plugin to drain heroku http'
@@ -7,7 +7,12 @@ module Fluent
7
7
  HTTPS_REGEXP = /^([0-9]+)\s+\<(?<pri>[0-9]+)\>[0-9]* (?<time>[^ ]*) (?<drain_id>[^ ]*) (?<ident>[a-zA-Z0-9_\/\.\-]*) (?<pid>[a-zA-Z0-9\.]+)? *- *(?<message>.*)$/
8
8
 
9
9
  FACILITY_MAP = Fluent::Plugin::SyslogInput::FACILITY_MAP
10
- PRIORITY_MAP = Fluent::Plugin::SyslogInput::PRIORITY_MAP
10
+ # Constant was renamed in 1.7.3.
11
+ PRIORITY_MAP = if Gem::Version.new(Fluent::VERSION) >= Gem::Version.new('1.7.3')
12
+ Fluent::Plugin::SyslogInput::SEVERITY_MAP
13
+ else
14
+ Fluent::Plugin::SyslogInput::PRIORITY_MAP
15
+ end
11
16
 
12
17
  # https://tools.ietf.org/html/rfc5424#section-6.2.1 describes FACILITY
13
18
  # as multiplied by 8 (3 bits), so this is used to shift the values to
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-heroku-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Delivery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-16 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -89,8 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubyforge_project:
93
- rubygems_version: 2.5.2
92
+ rubygems_version: 3.1.4
94
93
  signing_key:
95
94
  specification_version: 4
96
95
  summary: fluent plugin to drain heroku http