logstash-input-cloudflare_logs 0.1.3 → 0.1.4
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 +1 -0
- data/logstash-input-cloudflare-logs.gemspec +1 -1
- metadata +2 -4
- data/spec/tmp/metadata.json +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a0b53848f8332a3bd8d7206a18ac44aa127300
|
4
|
+
data.tar.gz: 52b7d28b9c6e2af95b72fc79144026722552d905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8b92e98fb359741d4c33990506f6eacab41f8c2f764757cbb3d0e99efdfd9707a861ef5937d1c13d0392beb6a35d7ad556567d62cfd5deecad8ccd7f6342874
|
7
|
+
data.tar.gz: 4d279e2fd84e04c2dc9a33eb5143efba6f88ac738ea01ea5cfe3a64b1f7d16489584fd792d7a27d6d35fed705bca653df99c4682a9ed90faab7f08237a189c1f
|
@@ -53,6 +53,7 @@ class CloudflareAccess
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def logs
|
56
|
+
puts("https://api.cloudflare.com/client/v4/zones/#{domain}/logs/received?start=#{start_time}&end=#{end_time}&fields=#{fields.join(',')}")
|
56
57
|
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)
|
57
58
|
results.body.split("\n").collect { |raw_log| JSON.parse(raw_log) }
|
58
59
|
end
|
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.4
|
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-10-
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,7 +147,6 @@ files:
|
|
147
147
|
- spec/inputs/cloudflare-logs_spec.rb
|
148
148
|
- spec/inputs/cloudflare_access_spec.rb
|
149
149
|
- spec/spec_helper.rb
|
150
|
-
- spec/tmp/metadata.json
|
151
150
|
homepage: https://github.com/resumecompanion/logstash-input-cloudflare-logs
|
152
151
|
licenses:
|
153
152
|
- Apache License (2.0)
|
@@ -179,4 +178,3 @@ test_files:
|
|
179
178
|
- spec/inputs/cloudflare-logs_spec.rb
|
180
179
|
- spec/inputs/cloudflare_access_spec.rb
|
181
180
|
- spec/spec_helper.rb
|
182
|
-
- spec/tmp/metadata.json
|
data/spec/tmp/metadata.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"start_time":"2017-10-19 14:21:06 -0400"}
|