fluent-plugin-newrelic 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/fluent/plugin/out_newrelic.rb +8 -0
- data/lib/newrelic-fluentd-output/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd81b1178e9c16c6d1a9814e456b13936132c96a70c32248f7da5947255875e0
|
4
|
+
data.tar.gz: ebc969b9fbb9bc02f8053e7e039f9d748dba44ab7c29fc4d4b9d96dba378a19d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0498345d651300e2e75bf44fe0c183fc6b861d29688125aa97d1129a1ae4f1798a1bcac00bd29278e163f7c3d46771fa547ee14768bad0e6f3a39ecc0f9fe23d'
|
7
|
+
data.tar.gz: 8d9830136f2bd34c54820a07ab86bfc7fb40150357501e1ad4854bf037e206fbacee8aff7401cddcd451b3fdcf809ff0fb690dac5d91e43e5d2d7f71fa002c24
|
data/README.md
CHANGED
@@ -37,6 +37,12 @@ For more info, review [Fluentd's official documentation](https://docs.fluentd.or
|
|
37
37
|
| max_delay | The maximum delay between retries, in seconds | 30 |
|
38
38
|
| base_uri | New Relic ingestion endpoint | 'https://log-api.newrelic.com/log/v1' |
|
39
39
|
|
40
|
+
### Fields
|
41
|
+
|
42
|
+
* To make Kubernetes log forwarding easier, any `log` field in a log event will be
|
43
|
+
renamed to `message`, overwriting any `message` field. Kubernetes logs have their messages
|
44
|
+
in a `log` field, while we want messages in a `message` field.
|
45
|
+
|
40
46
|
### Example
|
41
47
|
|
42
48
|
Add the following block to your Fluentd config file (with your specific New Relic Insights Insert key), then restart Fluentd.
|
@@ -73,6 +73,14 @@ module Fluent
|
|
73
73
|
packaged['message'] = record['message']
|
74
74
|
packaged['attributes'].delete('message')
|
75
75
|
end
|
76
|
+
|
77
|
+
# Kubernetes logging puts the message field in the 'log' attribute, we'll use that
|
78
|
+
# as the 'message' field if it exists. We do the same in the Fluent Bit output plugin.
|
79
|
+
# See https://docs.docker.com/config/containers/logging/fluentd/
|
80
|
+
if record.has_key?('log')
|
81
|
+
packaged['message'] = record['log']
|
82
|
+
packaged['attributes'].delete('log')
|
83
|
+
end
|
76
84
|
|
77
85
|
packaged
|
78
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-newrelic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- New Relic Logging Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|