logstash-input-cloudflare 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/logstash/inputs/cloudflare.rb +3 -0
- data/logstash-input-cloudflare.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50f6a19fe24103c587edeff10c6d39bd4f7c3d3c
|
4
|
+
data.tar.gz: e40407c9b7d7d5e3c2c25d52e31837fa34e9fc77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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
|