fluent-plugin-elb-log 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/fluent-plugin-elb-log.gemspec +1 -1
- data/lib/fluent/plugin/in_elb_log.rb +7 -2
- 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: ddc7eb24bca51186012022ead06afe6208eafbb5
|
4
|
+
data.tar.gz: b01c03919626efda6907eb49619cb154f46d69c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cac1063b3d3a8b44053f0e520fab5e3a523b978b39f8909cebaa8a3845d199e2a35b4dab0eef612b00985f699347e1fc47a8960b8a6ec4df0467b813e911b795
|
7
|
+
data.tar.gz: 96da4c880dae80c7758b349645c896af1d53d9df5dd498be8c857e1f305737cf53a9b19779030a409c8805876265ffc2cf3845245487165f7f2a3d0122ab7a9f
|
data/README.md
CHANGED
@@ -108,8 +108,8 @@ SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt (If you using amazon linux)
|
|
108
108
|
"request_uri":"https://my-elb-test.example.com/",
|
109
109
|
"request_protocol":"HTTP/1.1",
|
110
110
|
"user_agent":"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)",
|
111
|
-
"
|
112
|
-
"
|
111
|
+
"ssl_cipher":"DHE-RSA-AES128-SHA",
|
112
|
+
"ssl_protocol":"TLSv1.2",
|
113
113
|
"option3":null
|
114
114
|
}
|
115
115
|
```
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-elb-log"
|
7
|
-
spec.version = "0.2.
|
7
|
+
spec.version = "0.2.4"
|
8
8
|
spec.authors = ["shinsaka"]
|
9
9
|
spec.email = ["shinx1265@gmail.com"]
|
10
10
|
spec.summary = "Amazon ELB log input plugin"
|
@@ -4,6 +4,11 @@ class Fluent::Elb_LogInput < Fluent::Input
|
|
4
4
|
LOGFILE_REGEXP = /^((?<prefix>.+?)\/|)AWSLogs\/(?<account_id>[0-9]{12})\/elasticloadbalancing\/(?<region>.+?)\/(?<logfile_date>[0-9]{4}\/[0-9]{2}\/[0-9]{2})\/[0-9]{12}_elasticloadbalancing_.+?_(?<logfile_elb_name>[^_]+)_(?<elb_timestamp>[0-9]{8}T[0-9]{4}Z)_(?<elb_ip_address>.+?)_(?<logfile_hash>.+)\.log$/
|
5
5
|
ACCESSLOG_REGEXP = /^(?<time>\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{6}Z) (?<elb>.+?) (?<client>[^ ]+)\:(?<client_port>.+?) (?<backend>.+?)(\:(?<backend_port>.+?))? (?<request_processing_time>.+?) (?<backend_processing_time>.+?) (?<response_processing_time>.+?) (?<elb_status_code>.+?) (?<backend_status_code>.+?) (?<received_bytes>.+?) (?<sent_bytes>.+?) \"(?<request_method>.+?) (?<request_uri>.+?) (?<request_protocol>.+?)\"( \"(?<user_agent>.*?)\" (?<ssl_cipher>.+?) (?<ssl_protocol>.+)(| (?<option3>.*)))?/
|
6
6
|
|
7
|
+
# Define `router` method to support v0.10.57 or earlier
|
8
|
+
unless method_defined?(:router)
|
9
|
+
define_method("router") { Fluent::Engine }
|
10
|
+
end
|
11
|
+
|
7
12
|
config_param :access_key_id, :string, :default => nil
|
8
13
|
config_param :secret_access_key, :string, :default => nil
|
9
14
|
config_param :region, :string, :default => nil
|
@@ -247,8 +252,8 @@ class Fluent::Elb_LogInput < Fluent::Input
|
|
247
252
|
"ssl_protocol" => line_match[:ssl_protocol],
|
248
253
|
"option3" => line_match[:option3],
|
249
254
|
}
|
250
|
-
|
251
|
-
|
255
|
+
|
256
|
+
router.emit(@tag, Fluent::Engine.now, record_common.merge(record))
|
252
257
|
end
|
253
258
|
end
|
254
259
|
rescue => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-elb-log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shinsaka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|