logstash-input-s3-sns-sqs 2.0.4 → 2.0.5

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
2
  SHA256:
3
- metadata.gz: 131941a4c12a2dc0399793b18b90ea9ac40bfe741d8fca8b63e6a3d257863693
4
- data.tar.gz: 1ae77c566d3421cf36ed2e5a16039f49a526a83b09db106f537fe94d893d45f7
3
+ metadata.gz: 94b617279b895a02ea10c98a541ac273b9a33c982d8c809a7960bd3fcb4dd111
4
+ data.tar.gz: cc780fbe8bf7fd9c4d523826d7d5a97c86f742ab2c3aad1ff34c3e67fc34ea5e
5
5
  SHA512:
6
- metadata.gz: cc602eddfdb4adcf5a08244b4e392042a250773b11f98020712a9fcb3988710355ec9b1931834d7fd0e8d0a15eb0227c94578f7c4da7a146b3451a7cded8c4a5
7
- data.tar.gz: 6f3cd9970544a86a621a0be5cb004edd14498fd3f6a3208cb6d183dde172ec98ef24b6235c4b47cf4fe2b09c14c3d8a992372669e944346517ff725606d7fd83
6
+ metadata.gz: 24ee24a3844f15c799dc843175e715317131b90ab1c7fcf3889cedd35e258c57cbd01ea199d0974da75a23bc4974e684b039f275e89cbefbf2c139dcf73e94f3
7
+ data.tar.gz: 99eb062267ff1cd180c25fd340b52e3b9b9a88ab74766f853f4a3daeac2ade74eb6defcc20e782ce98611a812b6059997f2cc7be66874d030e2376339fe5af94
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
+ ##2.0.5
2
+ -fix: crash on 0 byte file
3
+ -fix: type by folder function
1
4
  ##2.0.4
2
- - Fix minor bugs
5
+ -fix: type-by-folder repair
6
+ -fix: crash on 0 byte file
3
7
  ##2.0.3
4
8
  - Increase max parsing time -> drop event if reached
5
9
  - watcher thread should raise an error in poller loop if timeout reached.
@@ -10,7 +10,8 @@ class MagicGzipValidator
10
10
  # Ensure there are sufficient number of bytes to determine the
11
11
  # signature.
12
12
  if file.stat.size < minimum_bytes_for_determining_signature
13
- raise "File too small to calculate signature"
13
+ puts "File too small to calculate signature"
14
+ throw :skip_delete
14
15
  end
15
16
 
16
17
  @file = file
@@ -14,7 +14,7 @@ module LogProcessor
14
14
  file = record[:local_file]
15
15
  codec = @codec_factory.get_codec(record)
16
16
  folder = record[:folder]
17
- type = @type_by_folder[folder]
17
+ type = @type_by_folder[record[:bucket]][folder]
18
18
  metadata = {}
19
19
  line_count = 0
20
20
  event_count = 0
@@ -81,8 +81,8 @@ module LogProcessor
81
81
  end
82
82
 
83
83
  def read_file(filename)
84
- completed = false
85
84
  zipped = gzip?(filename)
85
+ completed = false
86
86
  file_stream = FileInputStream.new(filename)
87
87
  if zipped
88
88
  gzip_stream = GZIPInputStream.new(file_stream)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-s3-sns-sqs'
3
- s.version = '2.0.4'
3
+ s.version = '2.0.5'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "Get logs from AWS s3 buckets as issued by an object-created event via sns -> sqs."
6
6
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-s3-sns-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Herweg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2019-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement