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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a7139959102c50bbe70f6f32d2dcb94efc2e96b
4
- data.tar.gz: 587e5c2f61b9292e99ed759bc31b0e59e492a245
3
+ metadata.gz: 71a0b53848f8332a3bd8d7206a18ac44aa127300
4
+ data.tar.gz: 52b7d28b9c6e2af95b72fc79144026722552d905
5
5
  SHA512:
6
- metadata.gz: f9a53497bf46c9536423aa72447daa280cffd7228f03afed4adaf78f94b067bc5c412f087846efc51391071b7ebf06b0fa1a4112070bea2c3a349c3fa87a8d2c
7
- data.tar.gz: 531685c8afc186276dbd889705ceb2f489448a76bd39baa41ad02d870c8d912410312a93ab03463136dcc81c6fbdab9da9c08318a5186075357af25223eb6fe6
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-cloudflare_logs'
3
- s.version = '0.1.3'
3
+ s.version = '0.1.4'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'write cloudflare logs to logstash'
6
6
  s.description = 'Write cloudflare lgos to logstash.' \
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.3
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-19 00:00:00.000000000 Z
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
@@ -1 +0,0 @@
1
- {"start_time":"2017-10-19 14:21:06 -0400"}