logstash-input-neo4j 2.0.2-java → 2.0.5-java

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1b28c143222130d157ded24cef15d7a7ecae34b6
4
- data.tar.gz: 4f158a78453507a225d13020e53f969acead5a91
2
+ SHA256:
3
+ metadata.gz: e166208ab9c659d85e487137faa1aefded03996a7847537af7449e8663a3017a
4
+ data.tar.gz: f02d0dcf4ad4105dad5c4624b9d228010e1e9b3ffd21e12f602bc4dd72e15484
5
5
  SHA512:
6
- metadata.gz: 6f530d59ee072d6c6f19b3fe120dcbacab33e926f7bc8893359e817bd69e1e8309e4160d9d88eb1f4742eb14b9b9194919f0b346abc2cb5ca178e81624242e4c
7
- data.tar.gz: 393b0e3842d7a1e2cb65ae518186d61867dd508c8c8c87108a108e17b1d08c93f77983b31595cd1aad40fbff8be7132308ea7a3688471a12ab12517a99de303c
6
+ metadata.gz: 05b87cdc380aea683e81db2c00141ef54e0acdf3638188803caadc382a5e5c790b38d3f847ff9f40fe975d215e8b794b8ae6d14f28d1b4a879736dfbefb42cf7
7
+ data.tar.gz: 9d1dfcc12bc4a249c36f7713346d39931be8e316ff2599d3b5e75ab9e650a808d63a15a8bc80bc3e3889ef7625907a1b3eafa1638d43b04eaadc727be62477ee
@@ -1,3 +1,9 @@
1
+ ## 2.0.4
2
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
+
4
+ ## 2.0.3
5
+ - New dependency requirements for logstash-core for the 5.0 release
6
+
1
7
  ## 2.0.0
2
8
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
9
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source 'https://rubygems.org'
2
+
2
3
  gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Logstash Plugin
2
2
 
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-neo4j.svg)](https://travis-ci.org/logstash-plugins/logstash-input-neo4j)
4
+
3
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
6
 
5
7
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
@@ -53,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
53
55
  ```
54
56
  - Install plugin
55
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
56
62
  bin/plugin install --no-verify
63
+
57
64
  ```
58
65
  - Run Logstash with your plugin
59
66
  ```sh
@@ -71,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
71
78
  ```
72
79
  - Install the plugin from the Logstash home
73
80
  ```sh
74
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
75
87
  ```
76
88
  - Start Logstash and proceed to test the plugin
77
89
 
@@ -0,0 +1,93 @@
1
+ :plugin: neo4j
2
+ :type: input
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === Neo4j input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This plugin gets data from a Neo4j database in predefined intervals. To fetch
24
+ this data uses a given Cypher query.
25
+
26
+ ### Usage:
27
+ [source, ruby]
28
+ input {
29
+ neo4j {
30
+ query => "MATCH (p:`Person`)-->(m:`Movie`) WHERE m.released = 2005 RETURN *"
31
+ path => "/foo/bar.db"
32
+ }
33
+ }
34
+
35
+ In embedded_db mode this plugin require a neo4j db 2.0.1 or superior. If
36
+ using the remote version there is no major restriction.
37
+
38
+
39
+ [id="plugins-{type}s-{plugin}-options"]
40
+ ==== Neo4j Input Configuration Options
41
+
42
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
43
+
44
+ [cols="<,<,<",options="header",]
45
+ |=======================================================================
46
+ |Setting |Input type|Required
47
+ | <<plugins-{type}s-{plugin}-path>> |<<string,string>>|Yes
48
+ | <<plugins-{type}s-{plugin}-query>> |<<string,string>>|Yes
49
+ | <<plugins-{type}s-{plugin}-schedule>> |<<string,string>>|No
50
+ |=======================================================================
51
+
52
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
53
+ input plugins.
54
+
55
+ &nbsp;
56
+
57
+ [id="plugins-{type}s-{plugin}-path"]
58
+ ===== `path`
59
+
60
+ * This is a required setting.
61
+ * Value type is <<string,string>>
62
+ * There is no default value for this setting.
63
+
64
+ The path within your file system where the neo4j database is located
65
+
66
+ [id="plugins-{type}s-{plugin}-query"]
67
+ ===== `query`
68
+
69
+ * This is a required setting.
70
+ * Value type is <<string,string>>
71
+ * There is no default value for this setting.
72
+
73
+ If undefined, Logstash will complain, even if codec is unused.
74
+ Cypher query used to retrieve data from the neo4j database, this statement
75
+ should looks like something like this:
76
+
77
+ MATCH (p:`Person`)-->(m:`Movie`) WHERE m.released = 2005 RETURN *
78
+
79
+
80
+ [id="plugins-{type}s-{plugin}-schedule"]
81
+ ===== `schedule`
82
+
83
+ * Value type is <<string,string>>
84
+ * There is no default value for this setting.
85
+
86
+ Schedule of when to periodically run statement, in Cron format
87
+ for example: "* * * * *" (execute query every minute, on the minute).
88
+ If this variable is not specified then this input will run only once
89
+
90
+
91
+
92
+ [id="plugins-{type}s-{plugin}-common-options"]
93
+ include::{include_path}/{type}.asciidoc[]
@@ -1,17 +1,17 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-neo4j'
4
- s.version = '2.0.2'
4
+ s.version = '2.0.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Logstash Input for Neo4j"
7
- s.description = "Output events to Neo4j"
7
+ 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
8
  s.authors = ["Pere Urbon-Bayes", "Elastic"]
9
9
  s.email = 'pere.urbon@gmail.com'
10
10
  s.homepage = "http://purbon.com/"
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  # Special flag to let us know this is actually a logstash plugin
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
21
 
22
- s.add_runtime_dependency "logstash-core", ">= 2.0.0.beta2", "< 3.0.0"
22
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
23
23
  s.add_runtime_dependency 'rufus-scheduler', '3.0.9'
24
24
 
25
25
  if RUBY_PLATFORM == 'java'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.5
5
5
  platform: java
6
6
  authors:
7
7
  - Pere Urbon-Bayes
@@ -9,28 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-14 00:00:00.000000000 Z
12
+ date: 2017-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0.beta2
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: 3.0.0
23
- name: logstash-core
19
+ version: '1.0'
20
+ name: logstash-core-plugin-api
24
21
  prerelease: false
25
22
  type: :runtime
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
- - - '>='
29
- - !ruby/object:Gem::Version
30
- version: 2.0.0.beta2
31
- - - <
25
+ - - "~>"
32
26
  - !ruby/object:Gem::Version
33
- version: 3.0.0
27
+ version: '1.0'
34
28
  - !ruby/object:Gem::Dependency
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
@@ -48,7 +42,7 @@ dependencies:
48
42
  - !ruby/object:Gem::Dependency
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 4.0.0
54
48
  name: neo4j
@@ -56,13 +50,13 @@ dependencies:
56
50
  type: :runtime
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
52
  requirements:
59
- - - ~>
53
+ - - "~>"
60
54
  - !ruby/object:Gem::Version
61
55
  version: 4.0.0
62
56
  - !ruby/object:Gem::Dependency
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
- - - ~>
59
+ - - "~>"
66
60
  - !ruby/object:Gem::Version
67
61
  version: 2.0.0
68
62
  name: neo4j-community
@@ -70,13 +64,13 @@ dependencies:
70
64
  type: :runtime
71
65
  version_requirements: !ruby/object:Gem::Requirement
72
66
  requirements:
73
- - - ~>
67
+ - - "~>"
74
68
  - !ruby/object:Gem::Version
75
69
  version: 2.0.0
76
70
  - !ruby/object:Gem::Dependency
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - '>='
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: '0'
82
76
  name: logstash-devutils
@@ -84,13 +78,13 @@ dependencies:
84
78
  type: :development
85
79
  version_requirements: !ruby/object:Gem::Requirement
86
80
  requirements:
87
- - - '>='
81
+ - - ">="
88
82
  - !ruby/object:Gem::Version
89
83
  version: '0'
90
84
  - !ruby/object:Gem::Dependency
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - '>='
87
+ - - ">="
94
88
  - !ruby/object:Gem::Version
95
89
  version: '0'
96
90
  name: logstash-codec-plain
@@ -98,10 +92,12 @@ dependencies:
98
92
  type: :development
99
93
  version_requirements: !ruby/object:Gem::Requirement
100
94
  requirements:
101
- - - '>='
95
+ - - ">="
102
96
  - !ruby/object:Gem::Version
103
97
  version: '0'
104
- description: Output events to Neo4j
98
+ description: This gem is a Logstash plugin required to be installed on top of the
99
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
100
+ gem is not a stand-alone program
105
101
  email: pere.urbon@gmail.com
106
102
  executables: []
107
103
  extensions: []
@@ -113,6 +109,7 @@ files:
113
109
  - LICENSE
114
110
  - NOTICE.TXT
115
111
  - README.md
112
+ - docs/index.asciidoc
116
113
  - lib/logstash/inputs/neo4j-client.rb
117
114
  - lib/logstash/inputs/neo4j.rb
118
115
  - logstash-input-neo4j.gemspec
@@ -131,17 +128,17 @@ require_paths:
131
128
  - lib
132
129
  required_ruby_version: !ruby/object:Gem::Requirement
133
130
  requirements:
134
- - - '>='
131
+ - - ">="
135
132
  - !ruby/object:Gem::Version
136
133
  version: '0'
137
134
  required_rubygems_version: !ruby/object:Gem::Requirement
138
135
  requirements:
139
- - - '>='
136
+ - - ">="
140
137
  - !ruby/object:Gem::Version
141
138
  version: '0'
142
139
  requirements: []
143
140
  rubyforge_project:
144
- rubygems_version: 2.4.8
141
+ rubygems_version: 2.6.11
145
142
  signing_key:
146
143
  specification_version: 4
147
144
  summary: Logstash Input for Neo4j