logstash-input-azure_blob_storage 0.12.4 → 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: ec2c4d4ee6fcbbec7e34682089aeaa4c4b212dbb78bc9f6eab63fb4f08bbfd6a
4
- data.tar.gz: f041887728e35433066791d78a2eae76bf564bcf5e87f4cc199720f1cd1910e4
3
+ metadata.gz: b50189c380606c6fdb8b7f7216fe20d15c0d410f1c1f6670211baf25baa567ca
4
+ data.tar.gz: 189c80c15720ec9a85b8bb223a5ae7e4666fd0ebd6a96946f201bee96cf3dafc
5
5
  SHA512:
6
- metadata.gz: 4d745d3fa9ed1c768d2ca8c59b8d9034b4c56294b56e19796c9f622e4fb695c8050ab63c0e961fb1bd66c41b67999a37c42e2f0c49145dc5bf9d6c267a00d334
7
- data.tar.gz: d7d9a1dbd9f13c44bfeeb600abe82d2e4019e0ca5e5f55974c41777621fc56aedfc2a32d5f272d711e79a711c5e799d84cd5c9056395fee2dccb8b9c0df8bb2a
6
+ metadata.gz: 599ca22fd813634d3ffd5fbbef0361605fd7611ea4050bc85e30c06fe97dbfe6dcd879ee092573e8a94229435d25c7cef71255bc72f33ea3d4813de987600e4c
7
+ data.tar.gz: 53cc0e73c25323ba891e90a820c679071516187d641ed2c5dd5810a5bbb9654c2cf67c6239d400b58d8786c4cc4737aaa54b0fc1f145b4136ebf1f6b0203a00d
data/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
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
15
+ - Connection Cache reset removed, since agents are cached per host
2
16
  - Explicit handling of json_lines and respecting line boundaries (thanks nttoshev)
3
17
  - Removed reprocessing on any exception
4
18
 
data/README.md CHANGED
@@ -207,7 +207,7 @@ filter {
207
207
  remove_field => ["subresponse"]
208
208
  remove_field => ["username"]
209
209
  remove_field => ["clientPort"]
210
- remove_field => ["port"]:0
210
+ remove_field => ["port"]
211
211
  remove_field => ["timestamp"]
212
212
  }
213
213
  }
@@ -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,8 +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
275
- @logger.error("parse error on #{res[:nsg]} [#{res[:date]}] offset: #{file[:offset]} length: #{file[:length]}")
276
+ rescue JSON::ParserError => e
277
+ @logger.error("parse error #{e.message} on #{res[:nsg]} [#{res[:date]}] offset: #{file[:offset]} length: #{file[:length]}")
278
+ if (@debug_until > @processed) then @logger.info("#{chunk}") end
276
279
  end
277
280
  end
278
281
  # TODO: Convert this to line based grokking.
@@ -572,7 +575,7 @@ private
572
575
  @logger.debug("learned tail: #{@tail}")
573
576
  end
574
577
  rescue Exception => e
575
- @logger.info("learn json one of the attempts failed #{e.message}")
578
+ @logger.info("learn json one of the attempts failed")
576
579
  end
577
580
  end
578
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.4'
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.4
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: 2022-09-20 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\
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.2.29
129
+ rubygems_version: 3.2.33
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: This logstash plugin reads and parses data from Azure Storage Blobs.