logstash-output-influxdb 3.1.2 → 4.0.0

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
  SHA1:
3
- metadata.gz: 98758c0e7ae9f464d3f3bedbd7e806852068de37
4
- data.tar.gz: 3cd70751da808e61018de4bd7bf939bbd610f01c
3
+ metadata.gz: 1d30a313b6e704668859f42ae9b5023624fbf35e
4
+ data.tar.gz: c5b7c44f82b8098a727713596cc1762dc92a0893
5
5
  SHA512:
6
- metadata.gz: 8c4b6d62bdd19c0599d48d60b9bc449cf735e28928e334ac33173d849c1cfeb1c119b377cd4d0e36b8b25324747053a6928d3e044d76c65c7995f949dc997cad
7
- data.tar.gz: 9b8dda87b34515887acb82ae0c9ffe59d6428d8b55036a35fb49ee6f618a8f01c65618fffbcd60b3794d99a2025977e63e74d5f561bc446cec4b121697a5cf3a
6
+ metadata.gz: a22503dc7cecf37e1f71ca21aa2aa8404f5547756b326b25b529eb45f335056b3eb4ce3a426e00a13be4fc11c4ab1be28ee1474fb547e48b8babae15e2b926eb
7
+ data.tar.gz: 73f9fa98aa9e32f7d9f9facd88dd221e87b5e7518607b66ebc890e587387f24ee0efc05e0b907b702807085e59ff79ccd721ecb6770719be767b3f4bf71f1562
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
- # 3.1.2
1
+ ## 4.0.0
2
+ - Breaking: Updated plugin to use new Java Event APIs
3
+ - Fix the suite related to the new java event and the ordering of the keys in the hash.
4
+ - Relax logstash-core-plugin-api constraints
5
+ - update .travis.yml
6
+
7
+ ## 3.1.2
2
8
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
- # 3.1.1
9
+
10
+ ## 3.1.1
4
11
  - New dependency requirements for logstash-core for the 5.0 release
12
+
5
13
  ## 3.1.0
6
14
  - New option to enable SSL/TLS encrypted communication to InfluxDB
7
15
  - DB parameter now supports sprintf formatting
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  # Logstash Plugin
6
6
 
7
- [![Build
8
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-influxdb-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-influxdb-unit/)
7
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-influxdb.svg)](https://travis-ci.org/logstash-plugins/logstash-output-influxdb)
9
8
 
10
9
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
11
10
 
@@ -60,7 +59,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
60
59
  ```
61
60
  - Install plugin
62
61
  ```sh
62
+ # Logstash 2.3 and higher
63
+ bin/logstash-plugin install --no-verify
64
+
65
+ # Prior to Logstash 2.3
63
66
  bin/plugin install --no-verify
67
+
64
68
  ```
65
69
  - Run Logstash with your plugin
66
70
  ```sh
@@ -78,7 +82,12 @@ gem build logstash-filter-awesome.gemspec
78
82
  ```
79
83
  - Install the plugin from the Logstash home
80
84
  ```sh
81
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
85
+ # Logstash 2.3 and higher
86
+ bin/logstash-plugin install --no-verify
87
+
88
+ # Prior to Logstash 2.3
89
+ bin/plugin install --no-verify
90
+
82
91
  ```
83
92
  - Start Logstash and proceed to test the plugin
84
93
 
@@ -128,8 +128,6 @@ class LogStash::Outputs::InfluxDB < LogStash::Outputs::Base
128
128
 
129
129
  public
130
130
  def receive(event)
131
-
132
-
133
131
  @logger.debug? and @logger.debug("Influxdb output: Received event: #{event}")
134
132
 
135
133
  # An Influxdb 0.9 event looks like this:
@@ -1,10 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
-
3
2
  s.name = 'logstash-output-influxdb'
4
- s.version = '3.1.2'
3
+ s.version = '4.0.0'
5
4
  s.licenses = ['Apache License (2.0)']
6
5
  s.summary = "This output lets you output Metrics to InfluxDB"
7
- s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
6
+ s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
8
7
  s.authors = ["Elastic"]
9
8
  s.email = 'info@elastic.co'
10
9
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -20,7 +19,7 @@ Gem::Specification.new do |s|
20
19
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
20
 
22
21
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
22
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
23
 
25
24
  s.add_runtime_dependency 'stud'
26
25
  s.add_runtime_dependency 'manticore'
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "logstash/devutils/rspec/spec_helper"
2
3
  require "logstash/outputs/influxdb"
3
4
  require "manticore"
@@ -72,7 +73,7 @@ describe LogStash::Outputs::InfluxDB do
72
73
  end
73
74
 
74
75
  let(:expected_url) { 'http://localhost:8086/write?db=statistics&rp=default&precision=ms&u=&p='}
75
- let(:expected_body) { 'my_series foo="1",bar="2" 3' }
76
+ let(:expected_body) { 'my_series bar="2",foo="1" 3' }
76
77
 
77
78
  it "should use the event fields as the data points, excluding @version and @timestamp by default as well as any fields configured by exclude_fields" do
78
79
  expect_any_instance_of(Manticore::Client).to receive(:post!).with(expected_url, body: expected_body)
@@ -348,7 +349,7 @@ describe LogStash::Outputs::InfluxDB do
348
349
  end
349
350
 
350
351
  let(:expected_url) { 'http://localhost:8086/write?db=statistics&rp=default&precision=ms&u=&p='}
351
- let(:expected_body) { 'my_series foo=1,bar=2.0,baz="\\\"quotes\\\"" 3' } # We want the backslash and the escaped-quote in the request body
352
+ let(:expected_body) { 'my_series bar=2.0,foo=1,baz="\\\"quotes\\\"" 3' } # We want the backslash and the escaped-quote in the request body
352
353
 
353
354
  it "should quote all other values (and escaping double quotes)" do
354
355
  expect_any_instance_of(Manticore::Client).to receive(:post!).with(expected_url, body: expected_body)
@@ -390,7 +391,7 @@ describe LogStash::Outputs::InfluxDB do
390
391
  end
391
392
 
392
393
  let(:expected_url) { 'https://localhost:8086/write?db=statistics&rp=default&precision=ms&u=&p=' }
393
- let(:expected_body) { 'barfoo foo="1",bar="2",baz="3" 4' }
394
+ let(:expected_body) { 'barfoo bar="2",foo="1",baz="3" 4' }
394
395
 
395
396
  it "should POST to an https URL" do
396
397
  expect_any_instance_of(Manticore::Client).to receive(:post!).with(expected_url, body: expected_body)
@@ -436,7 +437,7 @@ describe LogStash::Outputs::InfluxDB do
436
437
  end
437
438
 
438
439
  let(:expected_url) { 'http://localhost:8086/write?db=barfoo&rp=default&precision=ms&u=&p=' }
439
- let(:expected_body) { "m1 foo=\"1\",bar=\"2\",baz=\"m1\" 1\nm2 foo=\"3\",bar=\"4\",baz=\"m2\" 2\nm2 foo=\"5\",bar=\"6\",baz=\"m2\" 3" }
440
+ let(:expected_body) { "m1 bar=\"2\",foo=\"1\",baz=\"m1\" 1\nm2 bar=\"4\",foo=\"3\",baz=\"m2\" 2\nm2 bar=\"6\",foo=\"5\",baz=\"m2\" 3" }
440
441
 
441
442
  it "should result in a single POST (one per database)" do
442
443
  expect_any_instance_of(Manticore::Client).to receive(:post!).once
@@ -491,8 +492,8 @@ describe LogStash::Outputs::InfluxDB do
491
492
 
492
493
  let(:expected_url_db1) { 'http://localhost:8086/write?db=db1&rp=default&precision=ms&u=&p=' }
493
494
  let(:expected_url_db2) { 'http://localhost:8086/write?db=db2&rp=default&precision=ms&u=&p=' }
494
- let(:expected_body_db1) { "m1 foo=\"1\",bar=\"db1\",baz=\"m1\" 1\nm2 foo=\"2\",bar=\"db1\",baz=\"m2\" 2" }
495
- let(:expected_body_db2) { "m1 foo=\"3\",bar=\"db2\",baz=\"m1\" 3\nm2 foo=\"4\",bar=\"db2\",baz=\"m2\" 4" }
495
+ let(:expected_body_db1) { "m1 bar=\"db1\",foo=\"1\",baz=\"m1\" 1\nm2 bar=\"db1\",foo=\"2\",baz=\"m2\" 2" }
496
+ let(:expected_body_db2) { "m1 bar=\"db2\",foo=\"3\",baz=\"m1\" 3\nm2 bar=\"db2\",foo=\"4\",baz=\"m2\" 4" }
496
497
 
497
498
  it "should result in two POSTs (one per database)" do
498
499
  expect_any_instance_of(Manticore::Client).to receive(:post!).twice
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-influxdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.60'
19
+ - - "<="
17
20
  - !ruby/object:Gem::Version
18
- version: '1.0'
21
+ version: '2.99'
19
22
  name: logstash-core-plugin-api
20
23
  prerelease: false
21
24
  type: :runtime
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.60'
30
+ - - "<="
25
31
  - !ruby/object:Gem::Version
26
- version: '1.0'
32
+ version: '2.99'
27
33
  - !ruby/object:Gem::Dependency
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
@@ -94,7 +100,7 @@ dependencies:
94
100
  - - ">="
95
101
  - !ruby/object:Gem::Version
96
102
  version: '0'
97
- description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
103
+ description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
98
104
  email: info@elastic.co
99
105
  executables: []
100
106
  extensions: []