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 +4 -4
- data/lib/logstash/inputs/cloudflare_logs.rb +3 -1
- data/logstash-input-cloudflare-logs.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d944ac1ffffb73250a3bde247667449f950459aa
|
4
|
+
data.tar.gz: 87e23780b673093c30b5913ea981e528c2c5f527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.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-
|
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
|