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 +4 -4
- data/.gitignore +2 -0
- data/README.md +6 -3
- data/fluent-plugin-logdna.gemspec +2 -2
- data/lib/fluent/plugin/out_logdna.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da65a7b3869648af8896ea77441d08fb50148a76
|
|
4
|
+
data.tar.gz: c454c50a394c16090cd79a0e3425823cebcfa33d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32bee56211bcad65342fe8a1c8067ddd7ee2959ada3ef8ec7b19843c9437757dda243d9ead00246287862af9fae07952ed0726e278c2a54a94f7dbb4f6225104
|
|
7
|
+
data.tar.gz: 070bb7394df14a30ead0ac8b40673f8d7ab02636a154d590355b429add0d30ef74a36f22baeb0a0fda0dc8b952c96d5c43a34da341c66dae03cbf0e1810f51b2
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# fluent-plugin-logdna
|
|
2
2
|
|
|
3
|
+
[](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
|
|
16
|
-
hostname
|
|
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.
|
|
6
|
-
s.date = '
|
|
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.
|
|
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:
|
|
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
|
-
-
|
|
40
|
-
-
|
|
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.
|
|
65
|
+
rubygems_version: 2.0.14.1
|
|
66
66
|
signing_key:
|
|
67
67
|
specification_version: 4
|
|
68
68
|
summary: LogDNA plugin for Fluentd
|