fluent-plugin-cloudwatch-logs 0.14.3 → 0.15.0

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: 235843b98cb5dd9dc3d827f118f0fac6a497b458506045e2058e3a3e0e616a03
4
- data.tar.gz: 05a0bdca272a046f17196b086bc18fa4d2b80ab51acd0a541c6c1967d28d24a4
3
+ metadata.gz: e50b3e4f91b6f5cd7f248296df925ca4aaeb84334d258af1c6b88a799cc2bc5d
4
+ data.tar.gz: 86f96160045a628966a3cbf8be1dc86300216a9b369fbcdc6a152af7c5f050a6
5
5
  SHA512:
6
- metadata.gz: 6de86a474fcb6ba9d00a7d31ee2fdce32ac1b2b850d17db65443d40a6156c2ae683655fc8cf40fd80fcab28bc5efdd18c3237d9fe0945cb3395a68b92a102391
7
- data.tar.gz: e5f58962889f125942abb1262e1ccf7a264e0f86bd196dd5959e98f10a970f58a65785ac5f9e743001adc2740d42892e7fd729b2b90dfb63eb07224debe4f55c
6
+ metadata.gz: 9da54173a919c373cf310e39a49cab0ea55db2af787e53a164e36bd3803b387ddd69bfd9f986495713cbb6d601d14a41f246bfdf001c45dc9837e0575530212d
7
+ data.tar.gz: eb427793ea313fbef14dfde24a324b8b87df2970eadbd179e69c6367f0d734a5c9502bc547702990bed15cf0e7867ddd4ff75e3961c7897ffd39a89292a513d6
@@ -1,19 +1,21 @@
1
1
  name: Testing on Ubuntu
2
2
  on:
3
- - push
4
- - pull_request
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
5
7
  jobs:
6
8
  build:
7
9
  runs-on: ${{ matrix.os }}
8
10
  strategy:
9
11
  fail-fast: false
10
12
  matrix:
11
- ruby: [ '2.5', '2.6', '2.7', '3.0' ]
13
+ ruby: [ '3.2', '3.3', '3.4' ]
12
14
  os:
13
15
  - ubuntu-latest
14
16
  name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15
17
  steps:
16
- - uses: actions/checkout@v2
18
+ - uses: actions/checkout@v4
17
19
  - uses: ruby/setup-ruby@v1
18
20
  with:
19
21
  ruby-version: ${{ matrix.ruby }}
@@ -21,6 +23,5 @@ jobs:
21
23
  env:
22
24
  CI: true
23
25
  run: |
24
- gem install bundler rake
25
26
  bundle install --jobs 4 --retry 3
26
27
  bundle exec rake test
@@ -1,19 +1,21 @@
1
1
  name: Testing on Windows
2
2
  on:
3
- - push
4
- - pull_request
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
5
7
  jobs:
6
8
  build:
7
9
  runs-on: ${{ matrix.os }}
8
10
  strategy:
9
11
  fail-fast: false
10
12
  matrix:
11
- ruby: [ '2.5', '2.6', '2.7', '3.0' ]
13
+ ruby: [ '3.2', '3.3', '3.4' ]
12
14
  os:
13
15
  - windows-latest
14
16
  name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15
17
  steps:
16
- - uses: actions/checkout@v2
18
+ - uses: actions/checkout@v4
17
19
  - uses: ruby/setup-ruby@v1
18
20
  with:
19
21
  ruby-version: ${{ matrix.ruby }}
@@ -21,6 +23,5 @@ jobs:
21
23
  env:
22
24
  CI: true
23
25
  run: |
24
- gem install bundler rake
25
26
  bundle install --jobs 4 --retry 3
26
27
  bundle exec rake test
data/README.md CHANGED
@@ -22,6 +22,12 @@
22
22
  gem install fluent-plugin-cloudwatch-logs
23
23
  ```
24
24
 
25
+ ### For fluent-package
26
+
27
+ ```sh
28
+ fluent-gem install fluent-plugin-cloudwatch-logs
29
+ ```
30
+
25
31
  ### For td-agent
26
32
 
27
33
  ```sh
@@ -328,7 +334,7 @@ rake test
328
334
 
329
335
  ## Caution
330
336
 
331
- If an event message exceeds API limit (256KB), the event will be discarded.
337
+ If an event message exceeds API limit (1MB), the event will be discarded.
332
338
 
333
339
  ## Cross-Account Operation
334
340
 
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Logs
5
- VERSION = "0.14.3"
5
+ VERSION = "0.15.0"
6
6
  end
7
7
  end
8
8
  end
@@ -68,7 +68,7 @@ module Fluent::Plugin
68
68
  end
69
69
 
70
70
  MAX_EVENTS_SIZE = 1_048_576
71
- MAX_EVENT_SIZE = 256 * 1024
71
+ MAX_EVENT_SIZE = 1024 * 1024
72
72
  EVENT_HEADER_SIZE = 26
73
73
 
74
74
  def initialize
@@ -3,6 +3,7 @@ require 'fluent/test/driver/input'
3
3
  require 'fluent/test/helpers'
4
4
  require 'date'
5
5
  require 'fluent/plugin/in_cloudwatch_logs'
6
+ require 'ostruct'
6
7
 
7
8
  class CloudwatchLogsInputTest < Test::Unit::TestCase
8
9
  include CloudwatchLogsTestHelper
@@ -974,11 +974,11 @@ class CloudwatchLogsOutputTest < Test::Unit::TestCase
974
974
  @log_level debug
975
975
  EOC
976
976
  d.run(default_tag: fluentd_tag) do
977
- d.feed(time, {'message' => '*' * 256 * 1024})
977
+ d.feed(time, {'message' => '*' * 1024 * 1024})
978
978
  end
979
979
 
980
980
  logs = d.logs
981
- assert(logs.any?{|log| log =~ /Log event in .* discarded because it is too large: 262184 bytes exceeds limit of 262144/})
981
+ assert(logs.any?{|log| log =~ /Log event in .* discarded because it is too large/})
982
982
  end
983
983
 
984
984
  def test_do_not_emit_empty_record
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-logs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.3
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-06-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: fluentd
@@ -122,7 +121,6 @@ dependencies:
122
121
  - - ">="
123
122
  - !ruby/object:Gem::Version
124
123
  version: '0'
125
- description:
126
124
  email:
127
125
  - ryota.arai@gmail.com
128
126
  executables: []
@@ -151,7 +149,6 @@ homepage: https://github.com/fluent-plugins-nursery/fluent-plugin-cloudwatch-log
151
149
  licenses:
152
150
  - MIT
153
151
  metadata: {}
154
- post_install_message:
155
152
  rdoc_options: []
156
153
  require_paths:
157
154
  - lib
@@ -166,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
163
  - !ruby/object:Gem::Version
167
164
  version: '0'
168
165
  requirements: []
169
- rubygems_version: 3.2.32
170
- signing_key:
166
+ rubygems_version: 3.6.8
171
167
  specification_version: 4
172
168
  summary: CloudWatch Logs Plugin for Fluentd
173
169
  test_files: