logstash-output-boundary 3.0.0 → 3.0.2
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/CHANGELOG.md +3 -0
- data/Gemfile +10 -1
- data/docs/index.asciidoc +139 -0
- data/lib/logstash/outputs/boundary.rb +2 -2
- data/logstash-output-boundary.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: 0a0213b615a27a32854d5573e9f727ceece2dc49
|
4
|
+
data.tar.gz: 642be67b9b3e5d9e4419ed6e49d4a5fae296cf5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b387440edbf900ab72f137b819eb00c9af3621a7d9e80b50e58f57fc2fcfd4dec31100677a93f51ba3190a466f62c7a29a7dca6c46844b6ea7e1749e97dc12c8
|
7
|
+
data.tar.gz: c3e08bf02f8289421d0993ed936056d60460a91d54fda5823df2af138143432d2a937bfa6991b7666090400efbfac92e43c19b57fb8d27e36b9604228e883736
|
data/CHANGELOG.md
CHANGED
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/docs/index.asciidoc
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
:plugin: boundary
|
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
|
+
=== Boundary output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
This output lets you send annotations to
|
24
|
+
Boundary based on Logstash events
|
25
|
+
|
26
|
+
Note that since Logstash maintains no state
|
27
|
+
these will be one-shot events
|
28
|
+
|
29
|
+
By default the start and stop time will be
|
30
|
+
the event timestamp
|
31
|
+
|
32
|
+
|
33
|
+
[id="plugins-{type}s-{plugin}-options"]
|
34
|
+
==== Boundary Output Configuration Options
|
35
|
+
|
36
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
37
|
+
|
38
|
+
[cols="<,<,<",options="header",]
|
39
|
+
|=======================================================================
|
40
|
+
|Setting |Input type|Required
|
41
|
+
| <<plugins-{type}s-{plugin}-api_key>> |<<string,string>>|Yes
|
42
|
+
| <<plugins-{type}s-{plugin}-auto>> |<<boolean,boolean>>|No
|
43
|
+
| <<plugins-{type}s-{plugin}-bsubtype>> |<<string,string>>|No
|
44
|
+
| <<plugins-{type}s-{plugin}-btags>> |<<array,array>>|No
|
45
|
+
| <<plugins-{type}s-{plugin}-btype>> |<<string,string>>|No
|
46
|
+
| <<plugins-{type}s-{plugin}-end_time>> |<<string,string>>|No
|
47
|
+
| <<plugins-{type}s-{plugin}-org_id>> |<<string,string>>|Yes
|
48
|
+
| <<plugins-{type}s-{plugin}-start_time>> |<<string,string>>|No
|
49
|
+
|=======================================================================
|
50
|
+
|
51
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
52
|
+
output plugins.
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
[id="plugins-{type}s-{plugin}-api_key"]
|
57
|
+
===== `api_key`
|
58
|
+
|
59
|
+
* This is a required setting.
|
60
|
+
* Value type is <<string,string>>
|
61
|
+
* There is no default value for this setting.
|
62
|
+
|
63
|
+
Your Boundary API key
|
64
|
+
|
65
|
+
[id="plugins-{type}s-{plugin}-auto"]
|
66
|
+
===== `auto`
|
67
|
+
|
68
|
+
* Value type is <<boolean,boolean>>
|
69
|
+
* Default value is `false`
|
70
|
+
|
71
|
+
Auto
|
72
|
+
If set to true, logstash will try to pull boundary fields out
|
73
|
+
of the event. Any field explicitly set by config options will
|
74
|
+
override these.
|
75
|
+
`['type', 'subtype', 'creation_time', 'end_time', 'links', 'tags', 'loc']`
|
76
|
+
|
77
|
+
[id="plugins-{type}s-{plugin}-bsubtype"]
|
78
|
+
===== `bsubtype`
|
79
|
+
|
80
|
+
* Value type is <<string,string>>
|
81
|
+
* There is no default value for this setting.
|
82
|
+
|
83
|
+
Sub-Type
|
84
|
+
|
85
|
+
[id="plugins-{type}s-{plugin}-btags"]
|
86
|
+
===== `btags`
|
87
|
+
|
88
|
+
* Value type is <<array,array>>
|
89
|
+
* There is no default value for this setting.
|
90
|
+
|
91
|
+
Tags
|
92
|
+
Set any custom tags for this event
|
93
|
+
Default are the Logstash tags if any
|
94
|
+
|
95
|
+
[id="plugins-{type}s-{plugin}-btype"]
|
96
|
+
===== `btype`
|
97
|
+
|
98
|
+
* Value type is <<string,string>>
|
99
|
+
* There is no default value for this setting.
|
100
|
+
|
101
|
+
Type
|
102
|
+
|
103
|
+
[id="plugins-{type}s-{plugin}-end_time"]
|
104
|
+
===== `end_time`
|
105
|
+
|
106
|
+
* Value type is <<string,string>>
|
107
|
+
* There is no default value for this setting.
|
108
|
+
|
109
|
+
End time
|
110
|
+
Override the stop time
|
111
|
+
Note that Boundary requires this to be seconds since epoch
|
112
|
+
If overriding, it is your responsibility to type this correctly
|
113
|
+
By default this is set to `event.get("@timestamp").to_i`
|
114
|
+
|
115
|
+
[id="plugins-{type}s-{plugin}-org_id"]
|
116
|
+
===== `org_id`
|
117
|
+
|
118
|
+
* This is a required setting.
|
119
|
+
* Value type is <<string,string>>
|
120
|
+
* There is no default value for this setting.
|
121
|
+
|
122
|
+
Your Boundary Org ID
|
123
|
+
|
124
|
+
[id="plugins-{type}s-{plugin}-start_time"]
|
125
|
+
===== `start_time`
|
126
|
+
|
127
|
+
* Value type is <<string,string>>
|
128
|
+
* There is no default value for this setting.
|
129
|
+
|
130
|
+
Start time
|
131
|
+
Override the start time
|
132
|
+
Note that Boundary requires this to be seconds since epoch
|
133
|
+
If overriding, it is your responsibility to type this correctly
|
134
|
+
By default this is set to `event.get("@timestamp").to_i`
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
139
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -25,14 +25,14 @@ class LogStash::Outputs::Boundary < LogStash::Outputs::Base
|
|
25
25
|
# Override the start time
|
26
26
|
# Note that Boundary requires this to be seconds since epoch
|
27
27
|
# If overriding, it is your responsibility to type this correctly
|
28
|
-
# By default this is set to `event
|
28
|
+
# By default this is set to `event.get("@timestamp").to_i`
|
29
29
|
config :start_time, :validate => :string
|
30
30
|
|
31
31
|
# End time
|
32
32
|
# Override the stop time
|
33
33
|
# Note that Boundary requires this to be seconds since epoch
|
34
34
|
# If overriding, it is your responsibility to type this correctly
|
35
|
-
# By default this is set to `event
|
35
|
+
# By default this is set to `event.get("@timestamp").to_i`
|
36
36
|
config :end_time, :validate => :string
|
37
37
|
|
38
38
|
# Type
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-boundary'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.2'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This output lets you send annotations to Boundary based on Logstash events"
|
6
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"
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.require_paths = ["lib"]
|
11
11
|
|
12
12
|
# Files
|
13
|
-
s.files = Dir[
|
13
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
14
14
|
|
15
15
|
# Tests
|
16
16
|
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-boundary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
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
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- LICENSE
|
57
57
|
- NOTICE.TXT
|
58
58
|
- README.md
|
59
|
+
- docs/index.asciidoc
|
59
60
|
- lib/logstash/outputs/boundary.rb
|
60
61
|
- logstash-output-boundary.gemspec
|
61
62
|
- spec/outputs/boundary_spec.rb
|