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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6eda7bbd72805879aaa17fca2b3cf43592742d51eae4ed16c96340b6f7c4e466
4
- data.tar.gz: 4f690f5faebe17f8bc63f5e69987ee58dbc45db50671a1afc8fa4fa2a57146d7
3
+ metadata.gz: cd81b1178e9c16c6d1a9814e456b13936132c96a70c32248f7da5947255875e0
4
+ data.tar.gz: ebc969b9fbb9bc02f8053e7e039f9d748dba44ab7c29fc4d4b9d96dba378a19d
5
5
  SHA512:
6
- metadata.gz: de56af89cd2c94df00f4ac4c4f66f143a574dc56eaad6339ef873146085c1039ab8ffe3f752087663fb1728736bc2f155bb0e9133b389da266f226f21ac2b52a
7
- data.tar.gz: '087805f75ce8784e6af381b3b48217ee36b380dd662a73d5321ef04f32f04da22118e9bbc68bc508d99414722af5a0683b6f659b4a73c4644040c0e1dd9affa5'
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
@@ -1,3 +1,3 @@
1
1
  module NewrelicFluentdOutput
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  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.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-28 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd