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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d944ac1ffffb73250a3bde247667449f950459aa
4
- data.tar.gz: 87e23780b673093c30b5913ea981e528c2c5f527
3
+ metadata.gz: b2e7718a2db8c32d7b87f6a6952b26558069b1df
4
+ data.tar.gz: 719dbb75a6a5088e2b3ad06784ff143350e7726f
5
5
  SHA512:
6
- metadata.gz: 776bb1f47fb5cf85b017d0575a87e3c5a045caf194c2bd293671f31ee3579dd67aa880bb39f15c647e3fee442e69563affb5f9d759ac48b3bb6760b44713d133
7
- data.tar.gz: 568dc60acefa9833e6d5e21b9f96db1b4ff4582548af6df2ab97120a915ff0946c6c803cc48996e2d7a10fd584774c43e8c9b22e22efee48d96c7955f888e4dc
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-cloudflare_logs'
3
- s.version = '0.1.9'
3
+ s.version = '0.1.10'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-cloudflare_logs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Moore