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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 774d459f36cd5d6aa1c570f3c6bf7f900a14fa84
4
- data.tar.gz: 5704d3a50ee2c3baddb254af75dbb3bcd7569df5
3
+ metadata.gz: cf20c41957f210f53619293918bc3b79f4c02eed
4
+ data.tar.gz: 5222e20534dae225983fd3430ffb0ad86812710a
5
5
  SHA512:
6
- metadata.gz: 9c18dcc7c4d292d7c8162c8b96674a7bcc21b105919705b3828fc9c205688aaa81c7eae8304c7bfaeee48f63612c0ee9013ca036bf667009126fe5850470eea8
7
- data.tar.gz: d4e3f3193c31c13b0729e0d7449e0b7932cb5061c51920336f6eb9580b8de830eab54fde10f5e4ce530ecd9ad57d61b4f4a1c50516909a9e70c3852f7f2e72e5
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-cloudflare_logs'
3
- s.version = '0.1.11'
3
+ s.version = '0.1.12'
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.' \
@@ -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.11
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-21 00:00:00.000000000 Z
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