logstash-input-cloudflare_logs 0.1.9 → 0.1.10
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 +2 -0
- data/logstash-input-cloudflare-logs.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2e7718a2db8c32d7b87f6a6952b26558069b1df
|
4
|
+
data.tar.gz: 719dbb75a6a5088e2b3ad06784ff143350e7726f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29b431afd92e56a57385c574793cdcdeacca6939c76dcf0ce22196f5d53638db49b01139827290051c1a108d172b69dd1d7eef1491c704a3cbfc203ad1b37940
|
7
|
+
data.tar.gz: 023d9bb7b455afe0e69a4ee679748312a9a86bfd86c807462a4732b0195d1d712502cc5a20540e978726e9956c894d4b987c21084b899d6d827b5e4744a21d7a
|
@@ -54,7 +54,9 @@ class CloudflareAccess
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def logs
|
57
|
+
@logger.warn('starting to get logs')
|
57
58
|
results = RestClient.get("https://api.cloudflare.com/client/v4/zones/#{domain}/logs/received?start=#{start_time}&end=#{end_time}&fields=#{fields.join(',')}", 'X-Auth-Email' => auth_email, 'X-Auth-Key' => auth_key)
|
59
|
+
@logger.warn('got logs')
|
58
60
|
results.body.split("\n").collect { |raw_log| JSON.parse(raw_log) }
|
59
61
|
end
|
60
62
|
end
|