fluent-plugin-logdna 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6d4f3ff540859fa2e19ea517febef74e210cfd7
4
- data.tar.gz: ff5f6c81db7105855ceea9180cd3b86aa1a5f1f6
3
+ metadata.gz: da65a7b3869648af8896ea77441d08fb50148a76
4
+ data.tar.gz: c454c50a394c16090cd79a0e3425823cebcfa33d
5
5
  SHA512:
6
- metadata.gz: a50034d4665e5ec010190dd49c03defc5cb8d84c93522942d5431052bf572914096632b09cc46ccce669fb00ca531b4fcd85beb02a6b893ef21a85564dce10c4
7
- data.tar.gz: 9867b079ffcd131b4192625bb8fe5bc1b113e3f28e0b9df2547aaba4f71a24a1c33513d2a131a6d189e2c2c4cd2617e8dde2b02e50be3f8c51d0b381329b0e56
6
+ metadata.gz: 32bee56211bcad65342fe8a1c8067ddd7ee2959ada3ef8ec7b19843c9437757dda243d9ead00246287862af9fae07952ed0726e278c2a54a94f7dbb4f6225104
7
+ data.tar.gz: 070bb7394df14a30ead0ac8b40673f8d7ab02636a154d590355b429add0d30ef74a36f22baeb0a0fda0dc8b952c96d5c43a34da341c66dae03cbf0e1810f51b2
data/.gitignore CHANGED
@@ -48,3 +48,5 @@ build-iPhoneSimulator/
48
48
 
49
49
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
50
  .rvmrc
51
+
52
+ .DS_Store
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # fluent-plugin-logdna
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/fluent-plugin-logdna.svg)](https://badge.fury.io/rb/fluent-plugin-logdna)
4
+
3
5
  Using fluent-plugin-logdna, you can send the logs you collect with Fluentd to LogDNA.
4
6
 
5
7
  ## Instructions
@@ -12,14 +14,15 @@ Using fluent-plugin-logdna, you can send the logs you collect with Fluentd to Lo
12
14
  ~~~~~
13
15
  <match your_match>
14
16
  type logdna
15
- api_key d942fed2d0a65b0181e49ae3307465dd # paste your api key here (required)
16
- hostname GitHub # replace with your hostname (required)
17
+ api_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # paste your api key here (required)
18
+ hostname my_host # replace with your hostname (required)
17
19
  mac C0:FF:EE:C0:FF:EE # replace with host mac address
18
20
  ip 127.0.0.1 # replace with host ip address
19
21
  app my_app # replace with your app name
20
22
  </match>
21
23
  ~~~~~
24
+ * Restart fluentd to pick up the configuration changes.
22
25
 
23
26
  For advanced configuration options, refer to the [buffered output parameters documentation.](http://docs.fluentd.org/articles/output-plugin-overview#buffered-output-parameters)
24
27
 
25
- Questions or concerns? Contact [support@logdna.com](mailto:support@logdna.com).
28
+ Questions or concerns? Contact [support@logdna.com](mailto:support@logdna.com).
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'fluent-plugin-logdna'
5
- s.version = '0.1.0'
6
- s.date = '2016-10-20'
5
+ s.version = '0.1.1'
6
+ s.date = '2017-03-08'
7
7
  s.summary = 'LogDNA plugin for Fluentd'
8
8
  s.description = 'Fluentd plugin for supplying output to LogDNA.'
9
9
  s.authors = ['Edwin Lai']
@@ -55,9 +55,9 @@ module Fluent
55
55
 
56
56
  def gather_line_data(tag, time, record)
57
57
  line = {
58
- level: tag.split('.').last,
58
+ level: record['level'] || tag.split('.').last,
59
59
  timestamp: time,
60
- line: record['message']
60
+ line: record['message'] || record.to_json
61
61
  }
62
62
  line[:app] = @app if @app
63
63
  line
metadata CHANGED
@@ -1,33 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logdna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
- - - ">="
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.0.3
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '2.0'
30
- - - ">="
30
+ - - '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.0.3
33
33
  description: Fluentd plugin for supplying output to LogDNA.
@@ -36,8 +36,8 @@ executables: []
36
36
  extensions: []
37
37
  extra_rdoc_files: []
38
38
  files:
39
- - ".gitignore"
40
- - ".ruby-version"
39
+ - .gitignore
40
+ - .ruby-version
41
41
  - LICENSE
42
42
  - README.md
43
43
  - fluent-plugin-logdna.gemspec
@@ -52,17 +52,17 @@ require_paths:
52
52
  - lib
53
53
  required_ruby_version: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ">="
55
+ - - '>='
56
56
  - !ruby/object:Gem::Version
57
57
  version: 2.0.0
58
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 2.5.1
65
+ rubygems_version: 2.0.14.1
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: LogDNA plugin for Fluentd