embulk-parser-apache_error_log 0.1.0 → 0.1.1
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/embulk-parser-apache_error_log.gemspec +1 -1
- data/lib/embulk/parser/apache_error_log.rb +8 -8
- 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: 82af5070851c56239f62550d11034a6a0f9be74c
|
4
|
+
data.tar.gz: 3231808762cd70b7e1e8c77dab1dbdf9fd3816f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f4ed23ddb74c10a42f3c3e46ca6fa3701aec3201e78aaeed0e5c1b6a566ae3b5473a5c9c8943dd73d7fe57cedce352e8b61f7da1d0d69022071797f5c321fb4
|
7
|
+
data.tar.gz: 5b91cd6bb663b016139fbd44f6527878db5abe8fc8ad4773232d0fb1cd0ff634a9354466f119d07e3e48ffdaf3825eddb940a462b9edb3276cd4948ef3357fe6
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "embulk-parser-apache_error_log"
|
4
|
-
spec.version = "0.1.
|
4
|
+
spec.version = "0.1.1"
|
5
5
|
spec.authors = ["Tomohiro Mitsusmune"]
|
6
6
|
spec.summary = "Apache Error Log parser plugin for Embulk"
|
7
7
|
spec.description = "Parses Apache Error Log files read by other file input plugins."
|
@@ -2,22 +2,22 @@ module Embulk
|
|
2
2
|
module Parser
|
3
3
|
|
4
4
|
class ApacheErrorLog < ParserPlugin
|
5
|
-
Plugin.register_parser(
|
5
|
+
Plugin.register_parser('apache_error_log', self)
|
6
6
|
|
7
7
|
def self.transaction(config, &control)
|
8
8
|
# configuration code:
|
9
9
|
puts config
|
10
10
|
task = {
|
11
|
-
'hostname' => config.param('hostname', :string)
|
11
|
+
'hostname' => config.param('hostname', :string, default: '')
|
12
12
|
}
|
13
13
|
|
14
14
|
columns = [
|
15
|
-
Column.new(0,
|
16
|
-
Column.new(1,
|
17
|
-
Column.new(2,
|
18
|
-
Column.new(3,
|
19
|
-
Column.new(4,
|
20
|
-
Column.new(5,
|
15
|
+
Column.new(0, 'time', :string),
|
16
|
+
Column.new(1, 'level', :string),
|
17
|
+
Column.new(2, 'pid', :long),
|
18
|
+
Column.new(3, 'client', :string),
|
19
|
+
Column.new(4, 'message', :string),
|
20
|
+
Column.new(5, 'hostname', :string)
|
21
21
|
]
|
22
22
|
|
23
23
|
yield(task, columns)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-parser-apache_error_log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomohiro Mitsusmune
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|