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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee209ea1b376b29613b32d17b8a528677eafccd7
4
- data.tar.gz: 733ec7a1db5b79bf75637b40660fa308c3adfd63
3
+ metadata.gz: 304e80660c778fd1ba5af1aedc391303e8c636d2
4
+ data.tar.gz: 74b40205d5f1a62615f8f4baac4edcf651b24c61
5
5
  SHA512:
6
- metadata.gz: 197ef512ef1100dcdc3840de52aa5056df4cd2658e5514ff5f19d63a881bb059c6d0f84f8480f1e7eeea06dc2c5a7a477a090ff804e435e2821f688c8bb10c12
7
- data.tar.gz: 14ffdbc3a0b3e246f2387287aabd2f657bf568768c128977de4b856ae095a4760fbb1c89948f17cb5a0455ee32db8fa15d50e93210d8695a84eae9c8768f85cb
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.5"
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 << "*.token"].each do |file|
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logentries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Woorank