fluent-plugin-heroku-syslog-http 0.2.4 → 0.4
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/.circleci/config.yml +10 -25
- data/.github/dependabot.yml +9 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +1 -1
- data/fluent-plugin-heroku-syslog-http.gemspec +2 -2
- data/lib/fluent/plugin/in_heroku_syslog_http.rb +2 -5
- data/test/plugin/test_in_heroku_syslog_http.rb +1 -0
- data/test/plugin/test_parser_heroku_syslog_http.rb +2 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8623d768744a4d33f156120815cded8535d12d2f4c721deb25d0d45c140233d0
|
4
|
+
data.tar.gz: e749d1f964a4707397f83188572a88d9440a925ecd6bfabd9ba998e41a6708b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcbae533c4dd95b384f17569bce83bcdeea241624850fb1e90819983888dec52d2b42d6bc47e5b80be19873c9b2c083613d1c33fb897741ec54687fb93407d9a
|
7
|
+
data.tar.gz: 15d89d42ffbd8f79044e9af63aee5a7ead8a222f6f3eb6dfd42f29ef4b943d7573907847db13fae339bc1ed675a95c2aec17a263f4f88aa83df3108d7acc27d8
|
data/.circleci/config.yml
CHANGED
@@ -1,35 +1,20 @@
|
|
1
|
-
aliases:
|
2
|
-
- &step_cache_restore_deps
|
3
|
-
restore_cache:
|
4
|
-
keys:
|
5
|
-
- drivy-rails-fluent-plugin-heroku-syslog-http-{{ .Branch }}-{{ .Revision }}
|
6
|
-
- drivy-rails-fluent-plugin-heroku-syslog-http-{{ .Branch }}
|
7
|
-
- drivy-rails-fluent-plugin-heroku-syslog-http-
|
8
|
-
- &step_cache_save_deps
|
9
|
-
save_cache:
|
10
|
-
key: drivy-rails-fluent-plugin-heroku-syslog-http-{{ .Branch }}-{{ .Revision }}
|
11
|
-
paths: [ vendor/bundle ]
|
12
|
-
- &step_bundler_install_deps
|
13
|
-
run: bundle install --path vendor/bundle --jobs=2 --without development:deployment
|
14
|
-
|
15
1
|
version: 2
|
16
2
|
jobs:
|
17
|
-
test:
|
3
|
+
test-ruby:
|
18
4
|
docker:
|
19
|
-
- image:
|
5
|
+
- image: cimg/ruby:3.0.1
|
6
|
+
working_directory: /tmp/build
|
20
7
|
steps:
|
21
8
|
- checkout
|
22
|
-
-
|
23
|
-
|
24
|
-
|
25
|
-
- run:
|
26
|
-
|
27
|
-
|
28
|
-
- run: bundle exec rake
|
9
|
+
- run:
|
10
|
+
name: Bundle install
|
11
|
+
command: bundle install
|
12
|
+
- run:
|
13
|
+
name: Run test suite
|
14
|
+
command: bundle exec rake
|
29
15
|
|
30
16
|
workflows:
|
31
17
|
version: 2
|
32
|
-
|
33
18
|
test-and-deploy:
|
34
19
|
jobs:
|
35
|
-
-
|
20
|
+
- test-ruby
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-3.3.5
|
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'fluent-plugin-heroku-syslog-http'
|
5
|
-
gem.version = '0.
|
5
|
+
gem.version = '0.4'
|
6
6
|
gem.authors = ['GetAround']
|
7
7
|
gem.email = ['sre@getaround.com']
|
8
8
|
gem.description = 'fluent plugin to drain heroku syslog'
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
16
|
gem.require_paths = ['lib']
|
17
17
|
|
18
|
-
gem.add_runtime_dependency 'fluentd', '~> 1.0', '>= 1.
|
18
|
+
gem.add_runtime_dependency 'fluentd', '~> 1.0', '>= 1.17'
|
19
19
|
gem.add_development_dependency 'rake', '~> 13.0'
|
20
20
|
gem.add_development_dependency 'test-unit', '~> 3.4'
|
21
21
|
end
|
@@ -28,9 +28,8 @@ module Fluent
|
|
28
28
|
end
|
29
29
|
log.warn "#{content.size} bytes left in payload" unless content.size == 0
|
30
30
|
|
31
|
-
records = []
|
32
31
|
messages.each do |msg|
|
33
|
-
@
|
32
|
+
@custom_parser.parse(msg) do |time, record|
|
34
33
|
raise "Could not parse event: #{content}" if record.nil?
|
35
34
|
|
36
35
|
record['syslog.timestamp'] ||= Time.at(time).utc.strftime('%Y-%m-%dT%H:%M:%S%z')
|
@@ -40,11 +39,9 @@ module Fluent
|
|
40
39
|
log.warn "drain_id not match: #{msg.inspect}"
|
41
40
|
next
|
42
41
|
end
|
43
|
-
|
42
|
+
yield time, record
|
44
43
|
end
|
45
44
|
end
|
46
|
-
|
47
|
-
[nil, records]
|
48
45
|
end
|
49
46
|
end
|
50
47
|
end
|
@@ -22,7 +22,8 @@ class HerokuSyslogHttpParseTest < Test::Unit::TestCase
|
|
22
22
|
Fluent::Test.setup
|
23
23
|
end
|
24
24
|
|
25
|
-
def create_driver(conf =
|
25
|
+
def create_driver(conf = '')
|
26
|
+
conf = Fluent::Config.parse(conf, "(test)", "(test_dir)")
|
26
27
|
d = Struct.new(:instance).new
|
27
28
|
d.instance = Fluent::Plugin::HerokuSyslogHttpParser.new
|
28
29
|
d.instance.configure(conf)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-heroku-syslog-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GetAround
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '1.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
22
|
+
version: '1.17'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '1.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: '1.17'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,8 +66,10 @@ extensions: []
|
|
66
66
|
extra_rdoc_files: []
|
67
67
|
files:
|
68
68
|
- ".circleci/config.yml"
|
69
|
+
- ".github/dependabot.yml"
|
69
70
|
- ".gitignore"
|
70
71
|
- ".rubocop.yml"
|
72
|
+
- ".ruby-version"
|
71
73
|
- Gemfile
|
72
74
|
- LICENSE.txt
|
73
75
|
- README.md
|
@@ -97,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
99
|
- !ruby/object:Gem::Version
|
98
100
|
version: '0'
|
99
101
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
102
|
+
rubygems_version: 3.5.16
|
101
103
|
signing_key:
|
102
104
|
specification_version: 4
|
103
105
|
summary: fluent plugin to drain heroku syslog
|