logstash-output-stdout 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -1
- data/docs/index.asciidoc +64 -0
- data/logstash-output-stdout.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32ac5c2a4dd13123f66243fb0a42586d876e0e04
|
4
|
+
data.tar.gz: 38c3671d81184c13e64aac3fefa2a30dd19ccee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ea102056c1a8be8d6cc1fd2c8995d6d253929912f5bc9c8d45007ef07aca4be7e84f66a8acd4acafd08cef0389ca4cde944ef215a80c47bfc881c80562c7275
|
7
|
+
data.tar.gz: d63dcc479f5a4bc59302f37e264c93baf1569ec935956d0d3a21b09689c0683a9e261e48acc6bb1bddfdb9d3edf7ea9c925b40fcfcdc1fcee5568e90ce5a2584
|
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,64 @@
|
|
1
|
+
:plugin: stdout
|
2
|
+
:type: output
|
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
|
+
=== Stdout output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
A simple output which prints to the STDOUT of the shell running
|
24
|
+
Logstash. This output can be quite convenient when debugging
|
25
|
+
plugin configurations, by allowing instant access to the event
|
26
|
+
data after it has passed through the inputs and filters.
|
27
|
+
|
28
|
+
For example, the following output configuration, in conjunction with the
|
29
|
+
Logstash `-e` command-line flag, will allow you to see the results
|
30
|
+
of your event pipeline for quick iteration.
|
31
|
+
[source,ruby]
|
32
|
+
output {
|
33
|
+
stdout {}
|
34
|
+
}
|
35
|
+
|
36
|
+
Useful codecs include:
|
37
|
+
|
38
|
+
`rubydebug`: outputs event data using the ruby "awesome_print"
|
39
|
+
http://rubygems.org/gems/awesome_print[library]
|
40
|
+
|
41
|
+
[source,ruby]
|
42
|
+
output {
|
43
|
+
stdout { codec => rubydebug }
|
44
|
+
}
|
45
|
+
|
46
|
+
`json`: outputs event data in structured JSON format
|
47
|
+
[source,ruby]
|
48
|
+
output {
|
49
|
+
stdout { codec => json }
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
[id="plugins-{type}s-{plugin}-options"]
|
54
|
+
==== Stdout Output Configuration Options
|
55
|
+
|
56
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
57
|
+
|
58
|
+
[cols="<,<,<",options="header",]
|
59
|
+
|=======================================================================
|
60
|
+
|Setting |Input type|Required
|
61
|
+
|=======================================================================
|
62
|
+
|
63
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
64
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-stdout'
|
4
|
-
s.version = '3.1.
|
4
|
+
s.version = '3.1.1'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "A simple output which prints to the STDOUT of the shell running Logstash."
|
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)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-stdout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/outputs/stdout.rb
|
74
75
|
- logstash-output-stdout.gemspec
|
75
76
|
- spec/outputs/stdout_spec.rb
|