fluent-plugin-heroku-http 0.0.1 → 0.0.2
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 +5 -5
- data/README.md +8 -2
- data/fluent-plugin-heroku-http.gemspec +1 -1
- data/lib/fluent/plugin/parser_logplex.rb +6 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 00f52f0684d31b5fa4d898b4d34d1e5540ceab4c9ff3e0c7b9eb6f86158cd2a6
|
|
4
|
+
data.tar.gz: cc79b0c33654175c00c538d7cc0d6b1879778b570c43ca3eb09b57d4dbe3121a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
[](https://travis-ci.org/ApplauseOSS/fluent-plugin-heroku-http)
|
|
4
|
+
[](https://badge.fury.io/rb/fluent-plugin-heroku-http)
|
|
5
|
+
[](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 [
|
|
36
|
-
drains](https://devcenter.heroku.com/articles/log-drains#
|
|
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
|
+
[](https://app.fossa.io/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http?ref=badge_large)
|
|
@@ -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
|
-
|
|
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.
|
|
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:
|
|
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
|
-
|
|
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
|