logstash-output-newrelic 1.1.1 → 1.1.2

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: 45a98fd90dd92f095b34d4593459e6b5587ab779c331597c291ea3b94ad4291e
4
- data.tar.gz: f7f612da2d0040da95ca329c25e6dae097762246f5fa5061ad01082d22df0733
3
+ metadata.gz: 7e0d7a8723786c8081fd2e39cf95cab7e3dae1d79a4bf8dece2a08c61597b385
4
+ data.tar.gz: 753a456d7596ff42faada9d95be59527304a6a71ff7010d342807c2ce9ce5f80
5
5
  SHA512:
6
- metadata.gz: 816c2f5fa309328ffdf78f58894885cf791c3f8fb91867620e8494e1761e2ca4b8d9744b4c6a385c13482a7654ecfc677fb0792dc4174141e0b92beb6bc757ec
7
- data.tar.gz: b2b41b31f4af73a28bdad58416c10f0a25e54a56bc295987d96c825268bce4bcfcdc01e80ca0027dfaa71af95edb9c88d8fe254ad5be6aa6b025b692742d50b1
6
+ metadata.gz: f4c351f708c77f81f496f07e381f5bd6d9fbb75cb067f6d00c5bad69010ef4df37cd037a98dcf32d1d9db59dddd2ecf5ec6be9fb784e5d69b69ad716104600a1
7
+ data.tar.gz: 207d9d589b285b058f16953ac428e076448f017c3887f7872b0fc861d9fbeb2870e66404adde0df7428b9de32f048bdf2b245c1f9dcad7182078bd2f4ece647a
data/README.md CHANGED
@@ -11,9 +11,11 @@ Versions of this plugin less than 1.0.0 are unsupported.
11
11
 
12
12
  ## Configuration
13
13
 
14
- Add the following block to your logstash.conf (with your specific API Insert key), then restart Logstash.
14
+ Add one of the following blocks to your logstash.conf (with your specific key), then restart Logstash.
15
15
  There are other optional configuration properties, see below.
16
16
 
17
+ ### Using API Insert Key
18
+
17
19
  Get your API Insert Key:
18
20
  `https://insights.newrelic.com/accounts/<ACCOUNT_ID>/manage/api_keys`
19
21
 
@@ -26,12 +28,28 @@ output {
26
28
  }
27
29
  ```
28
30
 
31
+ ### Using License Key
32
+
33
+ Get your License Key:
34
+ `https://rpm.newrelic.com/accounts/<ACCOUNT_ID>`
35
+
36
+ Example:
37
+ ```rb
38
+ output {
39
+ newrelic {
40
+ license_key => "<LICENSE_KEY>"
41
+ }
42
+ }
43
+ ```
29
44
 
30
45
  ### Required plugin configuration
31
46
 
47
+ Exactly one of the following:
48
+
32
49
  | Property | Description |
33
50
  |---|---|
34
51
  | api_key | your New Relic API Insert key |
52
+ | license_key | your New Relic License key |
35
53
 
36
54
  ### Optional plugin configuration
37
55
 
@@ -43,7 +61,7 @@ output {
43
61
 
44
62
  ### EU plugin configuration
45
63
 
46
- When using this plugin in the EU override the base_uri with `http://log-api.eu.newrelic.com/log/v1`
64
+ When using this plugin in the EU override the base_uri with `https://log-api.eu.newrelic.com/log/v1`
47
65
 
48
66
  ## Testing
49
67
 
@@ -59,30 +77,3 @@ input {
59
77
  * Restart Logstash
60
78
  * Append a test log message to your log file: `echo "test message" >> /path/to/your/log/file`
61
79
  * Search New Relic Logs for `"test message"`
62
-
63
- ## JSON message parsing
64
-
65
- This plugin will attempt to parse any 'message' attribute as JSON -- if it is JSON, it will be parsed and
66
- the JSON attributes will be added to the event.
67
-
68
- For example, the event:
69
- ```
70
- {
71
- "timestamp": 1562767499238,
72
- "message": "{\"service-name\": \"login-service\", \"user\": {\"id\": 123, \"name\": \"alice\"}}"
73
- }
74
-
75
- ```
76
-
77
- Will be treated as:
78
- ```
79
- {
80
- "timestamp": 1562767499238,
81
- "message": "{\"service-name\": \"my-service\", \"user\": {\"id\": 123, \"name\": \"alice\"}}",
82
- "service-name": "login-service",
83
- "user": {
84
- "id": 123,
85
- "name": "alice"
86
- }
87
- }
88
- ```
@@ -1,7 +1,7 @@
1
1
  module LogStash
2
2
  module Outputs
3
3
  module NewRelicVersion
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
5
5
  end
6
6
  end
7
7
  end
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.add_runtime_dependency "logstash-codec-plain"
27
27
  s.add_development_dependency "logstash-devutils"
28
28
  s.add_development_dependency "webmock"
29
+ s.add_development_dependency "rspec"
29
30
  s.add_development_dependency "rspec-wait"
30
-
31
+ s.add_development_dependency "rspec_junit_formatter"
31
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - New Relic Logging Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ name: rspec
76
+ prerelease: false
77
+ type: :development
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  requirement: !ruby/object:Gem::Requirement
71
85
  requirements:
@@ -80,6 +94,20 @@ dependencies:
80
94
  - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ name: rspec_junit_formatter
104
+ prerelease: false
105
+ type: :development
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  description:
84
112
  email: logging-team@newrelic.com
85
113
  executables: []
@@ -88,7 +116,6 @@ extra_rdoc_files: []
88
116
  files:
89
117
  - CHANGELOG.md
90
118
  - CONTRIBUTORS
91
- - DEVELOPER.md
92
119
  - Gemfile
93
120
  - LICENSE
94
121
  - README.md
data/DEVELOPER.md DELETED
@@ -1,40 +0,0 @@
1
- # Developing the plugin
2
-
3
- # Getting started
4
-
5
- * Install JRuby: `rbenv install jruby-9.2.5.0`
6
- * Use that JRuby: `rbenv local jruby-9.2.5.0`
7
- * Install Bundler gem: `jruby -S gem install bundler`
8
-
9
- # Developing
10
-
11
- * Install dependencies: `jruby -S bundle install`
12
- * Write tests and production code!
13
- * Bump version: edit version file `version.rb`
14
- * Run tests: `jruby -S bundle exec rspec`
15
- * Build the gem: `jruby -S gem build logstash-output-newrelic.gemspec`
16
-
17
- ## Pushing changes to the public repo
18
- After updating the New Relic repo with changes, changes will need to be pushed to the public GitHub repo at: https://github.com/newrelic/logstash-output-plugin
19
-
20
- * `git remote add public git@github.com:newrelic/logstash-output-plugin.git`
21
- * `git push public master:name-of-branch-to-create`
22
- * Create a PR from that branch in https://github.com/newrelic/logstash-output-plugin
23
- * Get the PR reviewed, merged, and delete the branch!
24
-
25
- # Testing it with a local Logstash install
26
-
27
- Note: you may need to run the following commands outside of your checkout, since these should not
28
- be run with the JRuby version that you've configured your checkout to use (by using rbenv).
29
-
30
- * Remove previous version: `logstash-plugin remove logstash-output-newrelic`
31
- * Add new version: `logstash-plugin install logstash-output-newrelic-<version>.gem`
32
- * Restart logstash: For Homebrew: `brew services restart logstash`
33
- * Cause a change that you've configured Logstash to pick up (for instance, append to a file you're having it monitor)
34
- * Look in `https://staging-one.newrelic.com/launcher/logger.log-launcher` for your log message
35
-
36
- # Push changes to RubyGems
37
- After updating the source code and gem version in `version.rb`, push the changes to RubyGems. There is an older version of the gem that we do not want to overwrite — `version 0.9.1`. Please be sure you are publishing changes to the correct gem i.e. `version 1.0.0` or higher. Note, you must be a gem owner to publish changes on [RubyGems.org](https://rubygems.org/profiles/NR-LOGGING). Once you've created the account, you will need to run `gem signin` to login to RubyGems via the command line.
38
-
39
- * Build the gem: `gem build logstash-output-newrelic.gemspec`
40
- * Publish the gem: `gem push logstash-output-newrelic-<VERSION>.gem` with the updated version (ex: `gem push logstash-output-newrelic-1.0.0.gem`)