logstash-output-java_output_example 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 961b57e21c78e8b50d8326d2c9d8e8bb1617dcb91fc999db53a36bb69c36cd4a
4
+ data.tar.gz: ec21526c137dc74f07b04ccc900d68c351588095d52526539604d8af776da42e
5
+ SHA512:
6
+ metadata.gz: dadc35b978d2ed1355cfe9a349e1d72ddc5f8a5263427f8e0cce782e53b56d5348b7837d99c9c87c4ba8491dc5dc60a22a26269d3d5882d778797d18271202b5
7
+ data.tar.gz: 7b3ae0cd2844ef63ab2f2a4a1faa9afba7813f5ff3adb68ca11b6aa2af8e76732d64174edc7c712607e9e534f5da3ad7fd03598792d990b3f64663356beab3bd
@@ -0,0 +1,13 @@
1
+ ## 1.0.0
2
+ - Updated for GA release of native support for Java plugins. Includes:
3
+ - Improved Gradle task wrappers
4
+ - Removal of auto-generated Ruby source files
5
+
6
+ ## 0.2.0
7
+ - Updated for beta version of native support for Java plugins. Includes:
8
+ - Gradle task wrappers
9
+ - Updated plugin API
10
+ - Full feature parity with Ruby plugins
11
+
12
+ ## 0.0.1
13
+ - Initial version for experimental v0 of native support for Java plugins.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # AUTOGENERATED BY THE GRADLE SCRIPT. EDITS WILL BE OVERWRITTEN.
2
+ source 'https://rubygems.org'
3
+
4
+ gemspec
5
+
6
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
7
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
8
+
9
+ if Dir.exist?(logstash_path) && use_logstash_source
10
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
11
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
12
+ end
@@ -0,0 +1,9 @@
1
+ # Logstash Java Plugin
2
+
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-java_output_example.svg)](https://travis-ci.org/logstash-plugins/logstash-output-java_output_example)
4
+
5
+ This is a Java plugin for [Logstash](https://github.com/elastic/logstash).
6
+
7
+ It is fully free and fully open source. The license is Apache 2.0, meaning you are free to use it however you want.
8
+
9
+ The documentation for Logstash Java plugins is available [here](https://www.elastic.co/guide/en/logstash/6.7/contributing-java-plugin.html).
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
@@ -0,0 +1,127 @@
1
+ :plugin: example
2
+ :type: output
3
+ :default_codec: plain
4
+ // Update header with plugin name and default codec
5
+
6
+ ///////////////////////////////////////////
7
+ START - GENERATED VARIABLES, DO NOT EDIT!
8
+ ///////////////////////////////////////////
9
+ :version: %VERSION%
10
+ :release_date: %RELEASE_DATE%
11
+ :changelog_url: %CHANGELOG_URL%
12
+ :include_path: ../../../../logstash/docs/include
13
+ ///////////////////////////////////////////
14
+ END - GENERATED VARIABLES, DO NOT EDIT!
15
+ ///////////////////////////////////////////
16
+
17
+ [id="plugins-{type}s-{plugin}"]
18
+
19
+ === Example output plugin
20
+
21
+ include::{include_path}/plugin_header.asciidoc[]
22
+
23
+ ==== Description
24
+
25
+ Add plugin description here
26
+
27
+ // Format anchors and links to support generated ids for versioning
28
+ // Sample anchor: [id="plugins-{type}s-{plugin}-setting_name"]
29
+ // Sample link: <<plugins-{type}s-{plugin}-setting_name>>
30
+
31
+ [id="plugins-{type}s-{plugin}-options"]
32
+ ==== Example Output Configuration Options
33
+
34
+ [cols="<,<,<",options="header",]
35
+ |=======================================================================
36
+ |Setting |Input type|Required
37
+ | <<plugins-{type}s-{plugin}-a_setting_name>> |<<boolean,boolean>>|No
38
+ | <<plugins-{type}s-{plugin}-another_setting_name>> |<<hash,hash>>|No
39
+ | <<plugins-{type}s-{plugin}-setting_name_3>> |<<string,string>>|No
40
+ | <<plugins-{type}s-{plugin}-setting_name_4>> |<<number,number>>|No
41
+ | <<plugins-{type}s-{plugin}-setting_name_5>> |<<array,array>>|No
42
+ | <<plugins-{type}s-{plugin}-setting_name_6>> |<<bytes,bytes>>|No
43
+ | <<plugins-{type}s-{plugin}-setting_name_7>> |<<path,path>>|No
44
+ | <<plugins-{type}s-{plugin}-setting_name_8>> |<<password,password>>|No
45
+ | <<plugins-{type}s-{plugin}-setting_name_9>> |<<uri,uri>>|No
46
+ |=======================================================================
47
+
48
+ [id="plugins-{type}s-{plugin}-a_setting_name"]
49
+ ===== `a_setting_name`
50
+
51
+ * Value type is <<boolean,boolean>>
52
+ * Default value is `true`
53
+
54
+ Add description here
55
+
56
+ [id="plugins-{type}s-{plugin}-another_setting_name"]
57
+ ===== `another_setting_name`
58
+
59
+ * Value type is <<hash,hash>>
60
+ * Default value is `{}`
61
+
62
+ Add description here
63
+
64
+ [id="plugins-{type}s-{plugin}-setting_name_3"]
65
+ ===== `setting_name_3`
66
+
67
+ * Value type is <<string,string>>
68
+ * Default value is `{}`
69
+
70
+ Add description here
71
+
72
+ [id="plugins-{type}s-{plugin}-setting_name_4"]
73
+ ===== `setting_name_4`
74
+
75
+ * Value type is <<number,number>>
76
+ * Default value is `0`
77
+
78
+ Add description here
79
+
80
+ [id="plugins-{type}s-{plugin}-setting_name_5"]
81
+ ===== `setting_name_5`
82
+
83
+ * Value type is <<array,array>>
84
+ * Default value is {}
85
+
86
+ Add description here
87
+
88
+ [id="plugins-{type}s-{plugin}-setting_name_6"]
89
+ ===== `setting_name_6`
90
+
91
+ * Value type is <<bytes,bytes>>
92
+ * Default value is {}
93
+
94
+ Add description here
95
+
96
+ [id="plugins-{type}s-{plugin}-setting_name_7"]
97
+ ===== `setting_name_7`
98
+
99
+ * Value type is <<path,path>>
100
+ * Default value is {}
101
+
102
+ Add description here
103
+
104
+ [id="plugins-{type}s-{plugin}-setting_name_8"]
105
+ ===== `setting_name_8`
106
+
107
+ * Value type is <<password,password>>
108
+ * Default value is {}
109
+
110
+ Add description here
111
+
112
+
113
+ [id="plugins-{type}s-{plugin}-setting_name_9"]
114
+ ===== `setting_name_9`
115
+
116
+ * Value type is <<uri,uri>>
117
+ * Default value is {}
118
+
119
+ Add description here
120
+
121
+ // The full list of Value Types is here:
122
+ // https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html
123
+
124
+ [id="plugins-{type}s-{plugin}-common-options"]
125
+ include::{include_path}/{type}.asciidoc[]
126
+
127
+ :default_codec!:
@@ -0,0 +1,5 @@
1
+ # AUTOGENERATED BY THE GRADLE SCRIPT. EDITS WILL BE OVERWRITTEN.
2
+ # encoding: utf-8
3
+
4
+ require 'jar_dependencies'
5
+ require_jar('org.logstashplugins', 'logstash-output-java_output_example', '1.0.0')
@@ -0,0 +1,12 @@
1
+ # AUTOGENERATED BY THE GRADLE SCRIPT. EDITS WILL BE OVERWRITTEN.
2
+ # encoding: utf-8
3
+ require "logstash/outputs/base"
4
+ require "logstash/namespace"
5
+ require "logstash-output-java_output_example_jars"
6
+ require "java"
7
+
8
+ class LogStash::Outputs::JavaOutputExample < LogStash::Outputs::Base
9
+ config_name "java_output_example"
10
+
11
+ def self.javaClass() Java::org.logstashplugins.JavaOutputExample.java_class; end
12
+ end
@@ -0,0 +1,22 @@
1
+ # AUTOGENERATED BY THE GRADLE SCRIPT. EDITS WILL BE OVERWRITTEN.
2
+ Gem::Specification.new do |s|
3
+ s.name = 'logstash-output-java_output_example'
4
+ s.version = ::File.read('VERSION').split('\n').first
5
+ s.licenses = ['Apache-2.0']
6
+ s.summary = 'Example Java output implementation'
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
+ s.authors = ['Elasticsearch']
9
+ s.email = ['info@elastic.co']
10
+ s.homepage = 'http://www.elastic.co/guide/en/logstash/current/index.html'
11
+ s.require_paths = ['lib', 'vendor/jar-dependencies']
12
+
13
+ s.files = Dir["lib/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
+
15
+ # Special flag to let us know this is actually a logstash plugin
16
+ s.metadata = { 'logstash_plugin' => 'true', 'logstash_group' => 'output', 'java_plugin' => 'true'}
17
+
18
+ # Gem dependencies
19
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
20
+ s.add_runtime_dependency 'jar-dependencies'
21
+ s.add_development_dependency 'logstash-devutils'
22
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-output-java_output_example
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Elasticsearch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.60'
19
+ - - "<="
20
+ - !ruby/object:Gem::Version
21
+ version: '2.99'
22
+ name: logstash-core-plugin-api
23
+ prerelease: false
24
+ type: :runtime
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.60'
30
+ - - "<="
31
+ - !ruby/object:Gem::Version
32
+ version: '2.99'
33
+ - !ruby/object:Gem::Dependency
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ name: jar-dependencies
40
+ prerelease: false
41
+ type: :runtime
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ name: logstash-devutils
54
+ prerelease: false
55
+ type: :development
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ description: This gem is a Logstash plugin required to be installed on top of the
62
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
63
+ gem is not a stand-alone program
64
+ email:
65
+ - info@elastic.co
66
+ executables: []
67
+ extensions: []
68
+ extra_rdoc_files: []
69
+ files:
70
+ - CHANGELOG.md
71
+ - Gemfile
72
+ - README.md
73
+ - VERSION
74
+ - docs/index.asciidoc
75
+ - lib/logstash-output-java_output_example_jars.rb
76
+ - lib/logstash/outputs/java_output_example.rb
77
+ - logstash-output-java_output_example.gemspec
78
+ - vendor/jar-dependencies/org/logstashplugins/logstash-output-java_output_example/1.0.0/logstash-output-java_output_example-1.0.0.jar
79
+ homepage: http://www.elastic.co/guide/en/logstash/current/index.html
80
+ licenses:
81
+ - Apache-2.0
82
+ metadata:
83
+ logstash_plugin: 'true'
84
+ logstash_group: output
85
+ java_plugin: 'true'
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ - vendor/jar-dependencies
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubyforge_project:
103
+ rubygems_version: 2.7.9
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Example Java output implementation
107
+ test_files: []