fluent-plugin-rds-pgsql-slow-query-log 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1856adea3ee7706450d96762abeaaadcbbc894a0
|
4
|
+
data.tar.gz: 9f90ba8fbca1941e727d527e6dcaae10b9f0deba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c39883c35e42f048b25a8e8004adc56eb4ef6fc03d04c5db0ea845e59944c98cc704c785eced48169e0665fac974598c377f6b9bb69dee9554b5374ccb2838a
|
7
|
+
data.tar.gz: ebb968ed63ad6e2063391a619da15a764ac9f0eabbd74bd7a9124a20dbc8499ce7558dc529fd4a463f6de3275835f24f2c3b5b1e7e46cdaeb90300c3575b99f1
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "fluent-plugin-rds-pgsql-slow-query-log"
|
6
|
-
spec.version = "0.1.
|
6
|
+
spec.version = "0.1.2"
|
7
7
|
spec.authors = ["hSATAC"]
|
8
8
|
spec.email = ["hSATAC@gmail.com"]
|
9
9
|
spec.summary = "Amazon RDS for PostgreSQL log input plugin with slow query support"
|
data/fluent.conf.sample
CHANGED
@@ -14,6 +14,7 @@ class Fluent::RdsPgsqlLogInput < Fluent::Input
|
|
14
14
|
def configure(conf)
|
15
15
|
super
|
16
16
|
require 'aws-sdk'
|
17
|
+
require 'date'
|
17
18
|
|
18
19
|
raise Fluent::ConfigError.new("region is required") unless @region
|
19
20
|
if !has_iam_role?
|
@@ -199,7 +200,7 @@ class Fluent::RdsPgsqlLogInput < Fluent::Input
|
|
199
200
|
|
200
201
|
# set a record
|
201
202
|
record = {
|
202
|
-
"time" => line_match[:time],
|
203
|
+
"time" => DateTime.parse(line_match[:time]).to_s,
|
203
204
|
"host" => line_match[:host],
|
204
205
|
"user" => line_match[:user],
|
205
206
|
"database" => line_match[:database],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-rds-pgsql-slow-query-log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hSATAC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|