fluent-plugin-elb-log 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/README.md +3 -1
- data/fluent-plugin-elb-log.gemspec +1 -1
- data/lib/fluent/plugin/in_elb_log.rb +9 -1
- data/test/plugin/in_elb_log.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03432ec5a4aa00d72fcb5445dbd16d3d9d02c5ebdd97e1dffc5615bdc3453212
|
|
4
|
+
data.tar.gz: 9732ceccd96651ab3d08f5f5d42dbe0c2ba41f8f5db15e62b98f43f1b96e973c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb19c91a46c5f202ecbdb60b6cb1147abb4afc71e8f6876f2d33500edcd2070a8a9244c4c958b265e9ce62e29892a715f7dc8140cea7eda9bb0c7df2aa121474
|
|
7
|
+
data.tar.gz: a5fa18c35db28a2dab7bd1a7b21330b301e7771b32cd897821edfa0ea7c1e8d9e515bf786360ef106cf88a107b3f57fab798935ad1c1aedf807ffab27b213734
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -57,6 +57,7 @@ SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt (If you using amazon linux)
|
|
|
57
57
|
refresh_interval <interval number by second>
|
|
58
58
|
tag <tag name(default: elb.access)>
|
|
59
59
|
delete <boolean delete processed log files from S3(default: false)>
|
|
60
|
+
include_all_message <boolean (default:false)>
|
|
60
61
|
|
|
61
62
|
# following attibutes are required if you don't use IAM Role
|
|
62
63
|
access_key_id <access_key>
|
|
@@ -76,6 +77,7 @@ SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt (If you using amazon linux)
|
|
|
76
77
|
refresh_interval 300
|
|
77
78
|
tag elb.access
|
|
78
79
|
delete false
|
|
80
|
+
include_all_message false
|
|
79
81
|
access_key_id XXXXXXXXXXXXXXXXXXXX
|
|
80
82
|
secret_access_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
81
83
|
</source>
|
|
@@ -131,4 +133,4 @@ SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt (If you using amazon linux)
|
|
|
131
133
|
"option2": "\"301\"",
|
|
132
134
|
"option3": null
|
|
133
135
|
}
|
|
134
|
-
```
|
|
136
|
+
```
|
|
@@ -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 = "1.
|
|
7
|
+
spec.version = "1.3.0"
|
|
8
8
|
spec.authors = ["shinsaka"]
|
|
9
9
|
spec.email = ["shinx1265@gmail.com"]
|
|
10
10
|
spec.summary = "Amazon ELB log input plugin"
|
|
@@ -27,6 +27,7 @@ class Fluent::Plugin::Elb_LogInput < Fluent::Plugin::Input
|
|
|
27
27
|
config_param :delete, :bool, default: false
|
|
28
28
|
config_param :num_nodes, :integer, default: 1
|
|
29
29
|
config_param :node_no, :integer, default: 0
|
|
30
|
+
config_param :include_all_message, :bool, default: false
|
|
30
31
|
|
|
31
32
|
def configure(conf)
|
|
32
33
|
super
|
|
@@ -287,7 +288,14 @@ class Fluent::Plugin::Elb_LogInput < Fluent::Plugin::Input
|
|
|
287
288
|
now = Fluent::Engine.now
|
|
288
289
|
time = Time.parse(line_match[:time]).to_i rescue now
|
|
289
290
|
|
|
290
|
-
router.emit(
|
|
291
|
+
router.emit(
|
|
292
|
+
@tag,
|
|
293
|
+
time,
|
|
294
|
+
record_common.merge(
|
|
295
|
+
format_record(line_match),
|
|
296
|
+
@include_all_message ? {"all_message": line} : {}
|
|
297
|
+
)
|
|
298
|
+
)
|
|
291
299
|
end
|
|
292
300
|
end
|
|
293
301
|
rescue => e
|
data/test/plugin/in_elb_log.rb
CHANGED
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: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- shinsaka
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|