logstash-input-azure_blob_storage 0.10.3 → 0.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ffe9688fe5ef2401fa127b17b9eb8364b662bea1ea38a3fc639ff33ad586099
4
- data.tar.gz: 406f9b6882e588b2656020d9098d44c8ba656871d649991c2419cb1109f1fb19
3
+ metadata.gz: b2b6693e28facdfb5bd20cb174e0808f532fbd3d703489098ceed1b9f144572c
4
+ data.tar.gz: fb79d81ecadb1eff1201fb338d88066709528e8b4dbfbfecdb32a58a44d93e53
5
5
  SHA512:
6
- metadata.gz: 7d192a5a5ece7dd6ba46542cc53674f3605bc724fa1ca8a99afc7a1afca0fb519ab875e20feb1aed2f487474f8a2ba19b6465b12ecf4a99a2fe8b5459deed8ab
7
- data.tar.gz: c13f9bfedcaeafaa10475284e44095a975c9aa70f08bb0d165a3a06095fa8053333c4c1f7e0d62cd8f3059d8ba5d50beb877fae9277d3ece9344499ac2cc4421
6
+ metadata.gz: bf10deda3c20e2c49f182530ad67a7897530c7ff98a811b0c12c6aafda9c06983ced7086d965249d5f380d46f6da314570d55502a783337bfe5be2d7430972dd
7
+ data.tar.gz: cea053b1c2d1188fbcf1a758ed0c625c2dc7436306d4334516e05e0096b5c92ba94f04ebbb5b3a7182aa0c36987978dfb7a7d2cd29b60dffa72ec8db7f7d237b
@@ -83,7 +83,7 @@ def register
83
83
  @pipe_id = Thread.current[:name].split("[").last.split("]").first
84
84
  @logger.info("=== "+config_name+" / "+@pipe_id+" / "+@id[0,6]+" ===")
85
85
  #@logger.info("ruby #{ RUBY_VERSION }p#{ RUBY_PATCHLEVEL } / #{Gem.loaded_specs[config_name].version.to_s}")
86
- @logger.info("Contact me at jan@janmg.com, if something in this plugin doesn't work")
86
+ @logger.info("If this plugin doesn't work, please raise an issue in https://github.com/janmg/logstash-input-azure_blob_storage")
87
87
  # TODO: consider multiple readers, so add pipeline @id or use logstash-to-logstash communication?
88
88
  # TODO: Implement retry ... Error: Connection refused - Failed to open TCP connection to
89
89
 
@@ -132,7 +132,11 @@ def register
132
132
  end
133
133
  end
134
134
 
135
- @is_json = (defined?(LogStash::Codecs::JSON) == 'constant') && (@codec.is_a? LogStash::Codecs::JSON)
135
+ @is_json = false
136
+ if @codec.class == LogStash::Codecs::JSON
137
+ @is_json = true
138
+ end
139
+ @logger.debug(@pipe_id+" is_json is set to: #{@is_json} because it is a #{@codec}")
136
140
  @head = ''
137
141
  @tail = ''
138
142
  # if codec=json sniff one files blocks A and Z to learn file_head and file_tail
@@ -145,6 +149,7 @@ def register
145
149
  @tail = file_tail
146
150
  end
147
151
  end
152
+ @logger.info(@pipe_id+" head will be: #{@head} and tail is set to #{@tail}")
148
153
  end # def register
149
154
 
150
155
  def run(queue)
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-azure_blob_storage'
3
- s.version = '0.10.3'
3
+ s.version = '0.10.4'
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
7
- This gem is a Logstash plugin. It reads and parses data from Azure Storage Blobs. The azure_blob_storage is a reimplementation to replace azureblob from azure-diagnostics-tools/Logstash. It can deal with larger volumes and partial file reads and eliminating a delay when rebuilding the registry.
7
+ This gem is a Logstash plugin. It reads and parses data from Azure Storage Blobs. The azure_blob_storage is a reimplementation to replace azureblob from azure-diagnostics-tools/Logstash. It can deal with larger volumes and partial file reads and eliminating a delay when rebuilding the registry. Configuration examples can be found on https://github.com/janmg/logstash-input-azure_blob_storage
8
8
  EOF
9
9
  s.homepage = 'https://github.com/janmg/logstash-input-azure_blob_storage'
10
10
  s.authors = ['Jan Geertsma']
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.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Geertsma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-06 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -89,7 +89,8 @@ dependencies:
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\
92
- \ file reads and eliminating a delay when rebuilding the registry.\n"
92
+ \ file reads and eliminating a delay when rebuilding the registry. Configuration\
93
+ \ examples can be found on https://github.com/janmg/logstash-input-azure_blob_storage\n"
93
94
  email: jan@janmg.com
94
95
  executables: []
95
96
  extensions: []