logstash-input-cloudflare_logs 0.1.8 → 0.1.9

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: 592a38563c331b2c8f9d71581956eb5c788f62c7
4
- data.tar.gz: 49ea8f1e06486f01bf505cbdb1f859df0311745c
3
+ metadata.gz: d944ac1ffffb73250a3bde247667449f950459aa
4
+ data.tar.gz: 87e23780b673093c30b5913ea981e528c2c5f527
5
5
  SHA512:
6
- metadata.gz: c9fb69d5ab89e9dbe8d35e288e3c609315675110d3504a099d416aedf14fee21d230e8b1b0ec605fc118922f1e392c08f96ea5f50d6494afd51b0f76f4e89697
7
- data.tar.gz: b9203bfbaf7b0bc4949f3254e6b95e3b012520ecf8e5f5c1f56032eabed93580847114315275d3dde482f6d67ed3f22501e87e3046494f483a1acaf63f3d02d9
6
+ metadata.gz: 776bb1f47fb5cf85b017d0575a87e3c5a045caf194c2bd293671f31ee3579dd67aa880bb39f15c647e3fee442e69563affb5f9d759ac48b3bb6760b44713d133
7
+ data.tar.gz: 568dc60acefa9833e6d5e21b9f96db1b4ff4582548af6df2ab97120a915ff0946c6c803cc48996e2d7a10fd584774c43e8c9b22e22efee48d96c7955f888e4dc
@@ -10,13 +10,14 @@ require 'json'
10
10
  class CloudflareAccess
11
11
  DEFAULT_FIELDS = %w(CacheCacheStatus CacheResponseBytes CacheResponseStatus ClientASN ClientCountry ClientDeviceType ClientIP ClientIPClass ClientRequestBytes ClientRequestHost ClientRequestMethod ClientRequestProtocol ClientRequestReferer ClientRequestURI ClientRequestUserAgent ClientSSLCipher ClientSSLProtocol ClientSrcPort EdgeColoID EdgeEndTimestamp EdgePathingStatus EdgeResponseBytes EdgeResponseCompressionRatio EdgeResponseStatus EdgeStartTimestamp OriginIP OriginResponseBytes OriginResponseHTTPExpires OriginResponseHTTPLastModified OriginResponseStatus OriginResponseTime RayID WAFAction WAFRuleID ZoneID).freeze
12
12
 
13
- attr_accessor :auth_email, :auth_key, :domain, :fields, :metadata_file
13
+ attr_accessor :auth_email, :auth_key, :domain, :fields, :metadata_file, :logger
14
14
  def initialize(arguments)
15
15
  @auth_email = arguments[:auth_email]
16
16
  @auth_key = arguments[:auth_key]
17
17
  @domain = arguments[:domain]
18
18
  @fields = arguments[:fields] || DEFAULT_FIELDS
19
19
  @metadata_file = arguments[:metadata_file]
20
+ @logger = arguments[:logger]
20
21
  end
21
22
 
22
23
  def start_time
@@ -80,6 +81,7 @@ class LogStash::Inputs::CloudflareLogs < LogStash::Inputs::Base
80
81
  @access ||= CloudflareAccess.new(auth_key: @auth_key,
81
82
  auth_email: @auth_email,
82
83
  domain: @domain_key,
84
+ logger: @logger,
83
85
  metadata_file: @metadata_file)
84
86
  end
85
87
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-cloudflare_logs'
3
- s.version = '0.1.8'
3
+ s.version = '0.1.9'
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.8
4
+ version: 0.1.9
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-27 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement