logstash-input-azure_blob_storage 0.12.5 → 0.12.6

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: 00e66bdb4eda73c6d9a4219034d6a33bbf4d8a1c8206f7f2e6ec39b414dd9d63
4
- data.tar.gz: 953fa1cc28b60e5a44d7575ead5428e6fd62c309ad1c9630a2f2cd73dac1ffc3
3
+ metadata.gz: b50189c380606c6fdb8b7f7216fe20d15c0d410f1c1f6670211baf25baa567ca
4
+ data.tar.gz: 189c80c15720ec9a85b8bb223a5ae7e4666fd0ebd6a96946f201bee96cf3dafc
5
5
  SHA512:
6
- metadata.gz: a19ff34ae098f9bf115789b43781c4073268934c34fd69a2ae119ea844deffcd30d853aefc29e00fe4495858cbf336ec1c6dc0f2113c26239a47fcacfb73bb87
7
- data.tar.gz: 93ff0a91bfc54f8b159c80c9e0156064b3805166c0d83ae51fae09a8944e6f6b852ed72d269d5b1dd6e8561007a80042583fe2f7d7be20b09122c414c13ff94b
6
+ metadata.gz: 599ca22fd813634d3ffd5fbbef0361605fd7611ea4050bc85e30c06fe97dbfe6dcd879ee092573e8a94229435d25c7cef71255bc72f33ea3d4813de987600e4c
7
+ data.tar.gz: 53cc0e73c25323ba891e90a820c679071516187d641ed2c5dd5810a5bbb9654c2cf67c6239d400b58d8786c4cc4737aaa54b0fc1f145b4136ebf1f6b0203a00d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## PROBABLY 0.12.4 is the most stable version until I sort out when and why JSON Parse errors happen
2
+ Join the discussion if you have something to share!
3
+ https://github.com/janmg/logstash-input-azure_blob_storage/issues/34
4
+
5
+
6
+ ## 0.12.6
7
+ - Fixed the 0.12.5 exception handling, it actually caused a warning to become a fatal pipeline crashing error
8
+ - The chuck that failed to process should be printed in debug mode, for testing use debug_until => 10000
9
+ - Now check if registry entry exist before loading the offsets, to avoid caught: undefined method `[]' for nil:NilClass
10
+
11
+ ## 0.12.5
12
+ - Added exception message on json parse errors
13
+
1
14
  ## 0.12.4
2
15
  - Connection Cache reset removed, since agents are cached per host
3
16
  - Explicit handling of json_lines and respecting line boundaries (thanks nttoshev)
@@ -205,10 +205,12 @@ public
205
205
  filelist = list_blobs(false)
206
206
  filelist.each do |name, file|
207
207
  off = 0
208
- begin
208
+ if @registry.key?(name) then
209
+ begin
209
210
  off = @registry[name][:offset]
210
- rescue Exception => e
211
+ rescue Exception => e
211
212
  @logger.error("caught: #{e.message} while reading #{name}")
213
+ end
212
214
  end
213
215
  @registry.store(name, { :offset => off, :length => file[:length] })
214
216
  if (@debug_until > @processed) then @logger.info("2: adding offsets: #{name} #{off} #{file[:length]}") end
@@ -271,9 +273,9 @@ public
271
273
  fingjson = JSON.parse(chunk)
272
274
  @processed += nsgflowlog(queue, fingjson, name)
273
275
  @logger.debug("Processed #{res[:nsg]} [#{res[:date]}] #{@processed} events")
274
- rescue JSON::ParserError
276
+ rescue JSON::ParserError => e
275
277
  @logger.error("parse error #{e.message} on #{res[:nsg]} [#{res[:date]}] offset: #{file[:offset]} length: #{file[:length]}")
276
- @logger.debug("#{chunk}")
278
+ if (@debug_until > @processed) then @logger.info("#{chunk}") end
277
279
  end
278
280
  end
279
281
  # TODO: Convert this to line based grokking.
@@ -573,7 +575,7 @@ private
573
575
  @logger.debug("learned tail: #{@tail}")
574
576
  end
575
577
  rescue Exception => e
576
- @logger.info("learn json one of the attempts failed #{e.message}")
578
+ @logger.info("learn json one of the attempts failed")
577
579
  end
578
580
  end
579
581
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-azure_blob_storage'
3
- s.version = '0.12.5'
3
+ s.version = '0.12.6'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'This logstash plugin reads and parses data from Azure Storage Blobs.'
6
6
  s.description = <<-EOF
@@ -23,7 +23,6 @@ EOF
23
23
  s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.0'
24
24
  s.add_runtime_dependency 'stud', '~> 0.0.23'
25
25
  s.add_runtime_dependency 'azure-storage-blob', '~> 2', '>= 2.0.3'
26
-
27
- s.add_development_dependency 'logstash-devutils'
28
- s.add_development_dependency 'rubocop'
26
+ s.add_development_dependency 'logstash-devutils', '~> 2.4'
27
+ s.add_development_dependency 'rubocop', '~> 1.48'
29
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-azure_blob_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.5
4
+ version: 0.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Geertsma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -61,31 +61,31 @@ dependencies:
61
61
  - !ruby/object:Gem::Dependency
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - ">="
64
+ - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: '0'
66
+ version: '2.4'
67
67
  name: logstash-devutils
68
68
  prerelease: false
69
69
  type: :development
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0'
74
+ version: '2.4'
75
75
  - !ruby/object:Gem::Dependency
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ">="
78
+ - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '0'
80
+ version: '1.48'
81
81
  name: rubocop
82
82
  prerelease: false
83
83
  type: :development
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0'
88
+ version: '1.48'
89
89
  description: " This gem is a Logstash plugin. It reads and parses data from Azure\
90
90
  \ Storage Blobs. The azure_blob_storage is a reimplementation to replace azureblob\
91
91
  \ from azure-diagnostics-tools/Logstash. It can deal with larger volumes and partial\