fluent-plugin-elb-log 0.1.0 → 0.1.1

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: eb31f022a24f4237678c1666bbe9d407eaa858b3
4
- data.tar.gz: 6c353760ad26a95b9bfc9293548750a8fe842058
3
+ metadata.gz: 91f1e0caced4ac6012aeb65f8e366ef51c209486
4
+ data.tar.gz: 863240940690600b04514f2350c5c70d040983cb
5
5
  SHA512:
6
- metadata.gz: 32102c4c6e34209171d5fd95f474d07bd227308bf85a7c4b67f1eeeb6e3822fa6824136271a771d5aa6933fb1d9080b1d46ba7c648cc536e3308acce67462b63
7
- data.tar.gz: fe24ac63617e936272d650a55b1746101c31eebfd77de93f20f4cfccfa569697baf5f3065b83e73d80721f9fa9648052d11f55e413f78eadf5fa31346c2773ea
6
+ metadata.gz: 53e47ca5b031ea9fa2e8e9d15f14d4467f447feb385a000e133636e0aaa6f21ade7431969ad30599362a78f8ea396fcebf3fa12ebbe5a059dd1772e90393c98d
7
+ data.tar.gz: 943cc095e1424133d213086c83c32d1f6054b80cca314be76491ef58e9f1b3f1e603793ebf58cc7b3c001a60a5e5cd05964764e4379247913fb3f46f45fe75f0
@@ -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.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["shinsaka"]
9
9
  spec.email = ["shinx1265@gmail.com"]
10
10
  spec.summary = "Amazon ELB log input plugin"
@@ -99,13 +99,13 @@ class Fluent::Elb_LogInput < Fluent::Input
99
99
  matches = LOGFILE_REGEXP.match(obj.key)
100
100
  timestamp = matches[:elb_timestamp].to_i
101
101
  record_common = {
102
- account_id: matches[:account_id],
103
- region: matches[:region],
104
- logfile_date: matches[:logfile_date],
105
- logfile_elb_name: matches[:logfile_elb_name],
106
- elb_ip_address: matches[:elb_ip_address],
107
- logfile_hash: matches[:logfile_hash],
108
- elb_timestamp: matches[:elb_timestamp],
102
+ "account_id" => matches[:account_id],
103
+ "region" => matches[:region],
104
+ "logfile_date" => matches[:logfile_date],
105
+ "logfile_elb_name" => matches[:logfile_elb_name],
106
+ "elb_ip_address" => matches[:elb_ip_address],
107
+ "logfile_hash" => matches[:logfile_hash],
108
+ "elb_timestamp" => matches[:elb_timestamp],
109
109
  }
110
110
 
111
111
  # read an object from S3 to a file and write buffer file
@@ -133,22 +133,22 @@ class Fluent::Elb_LogInput < Fluent::Input
133
133
  next unless line_match
134
134
 
135
135
  record = {
136
- time: line_match[:time].gsub(/Z/, "+0000"),
137
- elb: line_match[:elb],
138
- client: line_match[:client],
139
- client_port: line_match[:client_port],
140
- backend: line_match[:backend],
141
- backend_port: line_match[:backend_port],
142
- request_processing_time: line_match[:request_processing_time].to_f,
143
- backend_processing_time: line_match[:backend_processing_time].to_f,
144
- response_processing_time: line_match[:response_processing_time].to_f,
145
- elb_status_code: line_match[:elb_status_code],
146
- backend_status_code: line_match[:backend_status_code],
147
- received_bytes: line_match[:received_bytes].to_i,
148
- sent_bytes: line_match[:sent_bytes].to_i,
149
- request_method: line_match[:request_method],
150
- request_uri: line_match[:request_uri],
151
- request_protocol: line_match[:request_protocol],
136
+ "time" => line_match[:time].gsub(/Z/, "+0000"),
137
+ "elb" => line_match[:elb],
138
+ "client" => line_match[:client],
139
+ "client_port" => line_match[:client_port],
140
+ "backend" => line_match[:backend],
141
+ "backend_port" => line_match[:backend_port],
142
+ "request_processing_time" => line_match[:request_processing_time].to_f,
143
+ "backend_processing_time" => line_match[:backend_processing_time].to_f,
144
+ "response_processing_time" => line_match[:response_processing_time].to_f,
145
+ "elb_status_code" => line_match[:elb_status_code],
146
+ "backend_status_code" => line_match[:backend_status_code],
147
+ "received_bytes" => line_match[:received_bytes].to_i,
148
+ "sent_bytes" => line_match[:sent_bytes].to_i,
149
+ "request_method" => line_match[:request_method],
150
+ "request_uri" => line_match[:request_uri],
151
+ "request_protocol" => line_match[:request_protocol],
152
152
  }
153
153
 
154
154
  Fluent::Engine.emit("elb.access", Fluent::Engine.now, record_common.merge(record))
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-elb-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - shinsaka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-05 00:00:00.000000000 Z
11
+ date: 2014-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sdk
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Amazon ELB log input plugin for fluentd
@@ -87,8 +87,8 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".gitignore"
91
- - ".travis.yml"
90
+ - .gitignore
91
+ - .travis.yml
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
@@ -108,12 +108,12 @@ require_paths:
108
108
  - lib
109
109
  required_ruby_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ">="
111
+ - - '>='
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">="
116
+ - - '>='
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []