fluent-plugin-logentries 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-logentries.gemspec +1 -1
- data/lib/fluent/plugin/out_logentries.rb +2 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 304e80660c778fd1ba5af1aedc391303e8c636d2
|
4
|
+
data.tar.gz: 74b40205d5f1a62615f8f4baac4edcf651b24c61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31e7463d16f00ebec9363ac9c7dc3554424d1d956482b089363b57ff5c65d2f385ee82166a82e63ca4ccef709e5eca362229b3b44946996917cad88b4aee9206
|
7
|
+
data.tar.gz: ca675ab28d20dd044d516912fdaf6e494310241604d7b6342194ac3cbcee90ead7d0490d052738b718cfac7e5014a199e3436561b1b9c398bdeee1f7e4133c8d
|
@@ -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-logentries"
|
7
|
-
spec.version = "0.0
|
7
|
+
spec.version = "0.1.0"
|
8
8
|
spec.authors = ["Woorank"]
|
9
9
|
spec.email = ["dev@woorank.com"]
|
10
10
|
spec.summary = "Logentries output plugin for Fluent event collector"
|
@@ -11,10 +11,6 @@ class LogentriesOutput < Fluent::BufferedOutput
|
|
11
11
|
config_param :path, :string
|
12
12
|
|
13
13
|
def configure(conf)
|
14
|
-
@port = conf['port']
|
15
|
-
@host = conf['host']
|
16
|
-
@path = conf['path']
|
17
|
-
|
18
14
|
super
|
19
15
|
end
|
20
16
|
|
@@ -23,8 +19,6 @@ class LogentriesOutput < Fluent::BufferedOutput
|
|
23
19
|
end
|
24
20
|
|
25
21
|
def shutdown
|
26
|
-
client.close
|
27
|
-
|
28
22
|
super
|
29
23
|
end
|
30
24
|
|
@@ -41,11 +35,12 @@ class LogentriesOutput < Fluent::BufferedOutput
|
|
41
35
|
def generate_token(path)
|
42
36
|
tokens = {}
|
43
37
|
|
44
|
-
Dir[path
|
38
|
+
Dir[path + "*.token"].each do |file|
|
45
39
|
key = File.basename(file, ".token") #remove path/extension from filename
|
46
40
|
#read the first line, remove unwanted char and close it
|
47
41
|
tokens[key] = File.open(file, &:readline).gsub(/\r\n|\r|\n/, '')
|
48
42
|
end
|
43
|
+
|
49
44
|
tokens
|
50
45
|
end
|
51
46
|
|