logstash-input-cloudflare_logs 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/cloudflare_logs.rb +3 -0
- data/logstash-input-cloudflare-logs.gemspec +1 -1
- data/spec/tmp/metadata.json +0 -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: cf20c41957f210f53619293918bc3b79f4c02eed
|
4
|
+
data.tar.gz: 5222e20534dae225983fd3430ffb0ad86812710a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0224967da873cb5bd96c6820275fcb25ebda91b3a79f8c71f913cdac2dee75059a2066efee3a9be563e5a9f99bbe73489d2c50b07164f559d3229bec69a4bd9
|
7
|
+
data.tar.gz: 9f259dd140389a30b42813a9847776ce048c17b682cf1aaf4de47135cc53e136b2896a6e85b070dd01b6335a7900fe74b71094ce3336de505ce4d64841bb89d6
|
@@ -59,6 +59,9 @@ class CloudflareAccess
|
|
59
59
|
results.body.split("\n").collect { |raw_log| JSON.parse(raw_log) }
|
60
60
|
rescue RestClient::BadRequest => error
|
61
61
|
@logger.error(error.response.strip)
|
62
|
+
@logger.error("https://api.cloudflare.com/client/v4/zones/#{domain}/logs/received?start=#{start_time}&end=#{end_time}&fields=#{fields.join(',')}")
|
63
|
+
@logger.error({'X-Auth-Email' => auth_email, 'X-Auth-Key' => auth_key}.inspect)
|
64
|
+
|
62
65
|
raise error
|
63
66
|
end
|
64
67
|
end
|
data/spec/tmp/metadata.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"start_time":"2017-11-20 10:37:08 -0500"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-cloudflare_logs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11
|
11
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|