fluent-plugin-elb-log 0.2.6 → 0.2.7
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/fluent-plugin-elb-log.gemspec +1 -1
- data/lib/fluent/plugin/in_elb_log.rb +5 -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: 3816c144ddcef435c237835bb110c21219347bec
|
4
|
+
data.tar.gz: f66a68e0e773adfe6021d56003079e4aab908b93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127af81c80b4faa0ddf3af8f43ab98d86e26da37728f07cc5657872c13929302c1e0c0c1f05a56f1b4c391acfdc483fe53d5b23baf081b77ceb5eca2fc8ac0a1
|
7
|
+
data.tar.gz: 5ddcddbb6ad7b42da4710316dc8639ae51293681760539d7291c3ec4ac15476c7ac358ca6e388820d94dc28157178f3cd621de81c06c86614b8f0fde34cb1f0d
|
@@ -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.7"
|
8
8
|
spec.authors = ["shinsaka"]
|
9
9
|
spec.email = ["shinx1265@gmail.com"]
|
10
10
|
spec.summary = "Amazon ELB log input plugin"
|
@@ -19,6 +19,7 @@ class Fluent::Elb_LogInput < Fluent::Input
|
|
19
19
|
config_param :refresh_interval, :integer, :default => 300
|
20
20
|
config_param :buf_file, :string, :default => './fluentd_elb_log_buf_file'
|
21
21
|
config_param :http_proxy, :string, :default => nil
|
22
|
+
config_param :start_time, :string, :default => nil
|
22
23
|
|
23
24
|
def configure(conf)
|
24
25
|
super
|
@@ -66,12 +67,14 @@ class Fluent::Elb_LogInput < Fluent::Input
|
|
66
67
|
end
|
67
68
|
|
68
69
|
def get_timestamp_file
|
70
|
+
require 'time'
|
69
71
|
begin
|
70
72
|
# get timestamp last proc
|
71
|
-
|
73
|
+
start_time = @start_time ? Time.parse(@start_time).utc : Time.at(0)
|
74
|
+
timestamp = start_time.to_i
|
72
75
|
$log.debug "timestamp file #{@timestamp_file} read"
|
73
76
|
File.open(@timestamp_file, File::RDONLY) do |file|
|
74
|
-
timestamp = file.read.to_i
|
77
|
+
timestamp = file.read.to_i if file.size > 0
|
75
78
|
end
|
76
79
|
$log.debug "timestamp start at:" + Time.at(timestamp).to_s
|
77
80
|
return timestamp
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shinsaka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|