logstash-input-cloudflare 0.9.9 → 0.9.10

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
  SHA1:
3
- metadata.gz: b4356b7f472e8934fe3a442fb03692296f3f458b
4
- data.tar.gz: 2aceb3aa8a7b0631b47ada0289ff523254ed7a9e
3
+ metadata.gz: 50f6a19fe24103c587edeff10c6d39bd4f7c3d3c
4
+ data.tar.gz: e40407c9b7d7d5e3c2c25d52e31837fa34e9fc77
5
5
  SHA512:
6
- metadata.gz: 68c74bc1c4b35406a4558e2d10a9e4de5ac146d10f8bf90db6cbc683653798b423a159b40ceaf5f975ade905556209dcdfeccdbb0e5cc83d346adbf7c857a05f
7
- data.tar.gz: ac0ce3e995140bdce345edb36630519179c2630f98fd9f06c5a80805c2491e4079984f9c0ba9f2c620acbcd5189c7211151ec00490a5386b16306204faa38360
6
+ metadata.gz: de7fe10c67e3186317f3cf85640a08e8d4421d8c864e3604f6c5c8e817e51f79cd99947d12f83c76bce92df083ac802f0c9f4782f58d8614e16c716f7b860d0d
7
+ data.tar.gz: b66187a1dc38f25305191abc199ed7730bffc990421197a7208ee9057b75971765ddcd2006f0c9af9b27b8f3467cd19910d132d208f19302a75ae3e22106f9b2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.9.10
2
+ - fixed an issue when Cloudflare wouldn't return a value for a field, Elasticsearch would return
3
+ an error and fail to process the message. Error in question was:
4
+ ```
5
+ {"type"=>"illegal_state_exception", "reason"=>"Can't get text on a END_OBJECT at 1:718"}
6
+ ```
7
+
1
8
  ## 0.9.9
2
9
  - changed default location of metadata_filepath file to /var/lib instead of /tmp
3
10
 
@@ -220,6 +220,9 @@ class LogStash::Inputs::Cloudflare < LogStash::Inputs::Base
220
220
  field.split('.').each do |field_part|
221
221
  value = value.fetch(field_part, {})
222
222
  end
223
+ # in the case of cache.cacheStatus ... if cacheStatus doesn't exist, it would return {}
224
+ # which results in ES erroring out, when passed in
225
+ next if value == {}
223
226
  event[field.tr('.', '_')] = value
224
227
  end
225
228
  end # def fill_cloudflare_data
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-cloudflare'
3
- s.version = '0.9.9'
3
+ s.version = '0.9.10'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'This logstash input plugin fetches logs from Cloudflare using'\
6
6
  'their API'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-cloudflare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Serko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement