logstash-codec-fluent 3.1.1-java → 3.1.2-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 +4 -4
- data/Gemfile +8 -1
- data/docs/index.asciidoc +51 -0
- data/logstash-codec-fluent.gemspec +5 -6
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a43651382bf70ecf3e5474f7876108a2388e2acd
|
4
|
+
data.tar.gz: a339295f3a45f921368c49a3e6f5c671f027c957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bffa573a0bc17b772343779d0ac6527a7cef0ed49899b2f14d915c2dba2f465003f285a75c31909099d4978ceb451f1f470b56c76fd909cef4675b7c6215d978
|
7
|
+
data.tar.gz: 8bb9379a628dbacaf74d57a0789361c652d13c244fdf37274e64a7e4515f5b1996955ec9876878daa802c1df965e4bebd119089350ce8b2272b49b76ca1d8faa
|
data/Gemfile
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in logstash-mass_effect.gemspec
|
4
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/docs/index.asciidoc
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
:plugin: fluent
|
2
|
+
:type: codec
|
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
|
+
=== Fluent codec plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
This codec handles fluentd's msgpack schema.
|
24
|
+
|
25
|
+
For example, you can receive logs from `fluent-logger-ruby` with:
|
26
|
+
[source,ruby]
|
27
|
+
input {
|
28
|
+
tcp {
|
29
|
+
codec => fluent
|
30
|
+
port => 4000
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
And from your ruby code in your own application:
|
35
|
+
[source,ruby]
|
36
|
+
logger = Fluent::Logger::FluentLogger.new(nil, :host => "example.log", :port => 4000)
|
37
|
+
logger.post("some_tag", { "your" => "data", "here" => "yay!" })
|
38
|
+
|
39
|
+
Notes:
|
40
|
+
|
41
|
+
* the fluent uses a second-precision time for events, so you will never see
|
42
|
+
subsecond precision on events processed by this codec.
|
43
|
+
|
44
|
+
|
45
|
+
[id="plugins-{type}s-{plugin}-options"]
|
46
|
+
==== Fluent Codec Configuration Options
|
47
|
+
|
48
|
+
[cols="<,<,<",options="header",]
|
49
|
+
|=======================================================================
|
50
|
+
|Setting |Input type|Required
|
51
|
+
|=======================================================================
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-fluent'
|
4
|
-
s.version = '3.1.
|
4
|
+
s.version = '3.1.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "This codec handles fluentd's msgpack schema."
|
7
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"
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.require_paths = ["lib"]
|
12
12
|
|
13
13
|
# Files
|
14
|
-
s.files = Dir[
|
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)/})
|
@@ -24,11 +24,10 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
if RUBY_PLATFORM == 'java'
|
26
26
|
s.platform = RUBY_PLATFORM
|
27
|
-
s.add_runtime_dependency 'msgpack-jruby'
|
28
|
-
else
|
29
|
-
s.add_runtime_dependency 'msgpack'
|
30
27
|
end
|
31
|
-
|
28
|
+
|
29
|
+
s.add_runtime_dependency 'msgpack'
|
30
|
+
|
32
31
|
s.add_development_dependency 'logstash-devutils', ">= 1.0.0"
|
33
32
|
end
|
34
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-fluent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
|
-
name: msgpack
|
39
|
+
name: msgpack
|
40
40
|
prerelease: false
|
41
41
|
type: :runtime
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/codecs/fluent.rb
|
74
75
|
- logstash-codec-fluent.gemspec
|
75
76
|
- spec/codecs/fluent_spec.rb
|