fluent-plugin-elb-log 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/fluent-plugin-elb-log.gemspec +1 -1
- data/fluent.conf.sample +7 -5
- data/lib/fluent/plugin/in_elb_log.rb +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: 68dcdf0bfedc006a6c88389b32d4aa6cb5d62b51
|
4
|
+
data.tar.gz: 471286b86e4a02b301f42dcefadca492a9c0fce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb53cab667f2d1e7ad07d0989ba5dae612647496fe86799978beafad941e443c2dbd36da46a7942bba938056357ef16123fe4e8278bdebdbf368d26513ee0bbb
|
7
|
+
data.tar.gz: fd3755a37453b8344a929c1a15b5f6e611d10fb1dc71845060ccd98a1c99992ed7a2078edd7870fca64c6126829d6daee7acbb668c642c416f3f5cc830c6c31b
|
data/README.md
CHANGED
@@ -65,7 +65,7 @@ SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt (If you using amazon linux)
|
|
65
65
|
region us-east-1
|
66
66
|
s3_bucketname my-elblog-bucket
|
67
67
|
s3_prefix prodcution/web
|
68
|
-
timestamp_file elb_last_at.dat
|
68
|
+
timestamp_file /tmp/elb_last_at.dat
|
69
69
|
buf_file /tmp/fluentd-elblog.tmpfile
|
70
70
|
refresh_interval 300
|
71
71
|
tag elb.access
|
@@ -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.1"
|
8
8
|
spec.authors = ["shinsaka"]
|
9
9
|
spec.email = ["shinx1265@gmail.com"]
|
10
10
|
spec.summary = "Amazon ELB log input plugin"
|
data/fluent.conf.sample
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
<source>
|
2
2
|
type elb_log
|
3
|
+
region us-east-1
|
4
|
+
s3_bucketname my-elblog-bucket
|
5
|
+
s3_prefix prodcution/web
|
6
|
+
timestamp_file /tmp/elb_last_at.dat
|
7
|
+
buf_file /tmp/fluentd-elblog.tmpfile
|
8
|
+
refresh_interval 300
|
9
|
+
tag elb.access
|
3
10
|
access_key_id XXXXXXXXXXXXXXXXXXXX
|
4
11
|
secret_access_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
5
|
-
s3_endpoint s3.amazonaws.com
|
6
|
-
s3_bucketname bucketname
|
7
|
-
s3_prefix prefix
|
8
|
-
timestamp_file elb_last_at.dat
|
9
|
-
refresh_interval 300
|
10
12
|
</source>
|
11
13
|
|
12
14
|
<match elb.access>
|
@@ -2,7 +2,7 @@ class Fluent::Elb_LogInput < Fluent::Input
|
|
2
2
|
Fluent::Plugin.register_input('elb_log', self)
|
3
3
|
|
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
|
-
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>.*?)\" (?<option1>.+?) (?<option2>.+)(| (?<option3>.*))
|
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>.*?)\" (?<option1>.+?) (?<option2>.+)(| (?<option3>.*)))?/
|
6
6
|
|
7
7
|
config_param :access_key_id, :string, :default => nil
|
8
8
|
config_param :secret_access_key, :string, :default => nil
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shinsaka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|