logstash-output-pagerduty 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +8 -1
- data/docs/index.asciidoc +105 -0
- data/logstash-output-pagerduty.gemspec +2 -2
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7498f228ec973d97c7346f02b71d5062f4c47baaef4a96660603623e48912971
|
4
|
+
data.tar.gz: c9acdb75562c68b3755589a93b43e4b642dacdbc791aecebb85389ee4fbbed30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26adf42ab8756d2d91abc5848ebd08ffe5473d292761fca1fa300ecbea658626d1e40ead93d1052f9ada9804d74db12706c9cac5780a3f5148af7eb7736e47fb
|
7
|
+
data.tar.gz: b33c2bac97d7c129b251327b6a2a251a7cb18f5a6d0f185adfc1b1fd22cca3704dc478b553be17da8af4fe81c0b8b49df93a309c28d91730275a17d0b88b1068
|
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,105 @@
|
|
1
|
+
:plugin: pagerduty
|
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
|
+
=== Pagerduty output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
The PagerDuty output will send notifications based on pre-configured services
|
24
|
+
and escalation policies. Logstash can send "trigger", "acknowledge" and "resolve"
|
25
|
+
event types. In addition, you may configure custom descriptions and event details.
|
26
|
+
The only required field is the PagerDuty "Service API Key", which can be found on
|
27
|
+
the service's web page on pagerduty.com. In the default case, the description and
|
28
|
+
event details will be populated by Logstash, using `message`, `timestamp` and `host` data.
|
29
|
+
|
30
|
+
[id="plugins-{type}s-{plugin}-options"]
|
31
|
+
==== Pagerduty Output Configuration Options
|
32
|
+
|
33
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
34
|
+
|
35
|
+
[cols="<,<,<",options="header",]
|
36
|
+
|=======================================================================
|
37
|
+
|Setting |Input type|Required
|
38
|
+
| <<plugins-{type}s-{plugin}-description>> |<<string,string>>|No
|
39
|
+
| <<plugins-{type}s-{plugin}-details>> |<<hash,hash>>|No
|
40
|
+
| <<plugins-{type}s-{plugin}-event_type>> |<<string,string>>, one of `["trigger", "acknowledge", "resolve"]`|No
|
41
|
+
| <<plugins-{type}s-{plugin}-incident_key>> |<<string,string>>|No
|
42
|
+
| <<plugins-{type}s-{plugin}-pdurl>> |<<string,string>>|No
|
43
|
+
| <<plugins-{type}s-{plugin}-service_key>> |<<string,string>>|Yes
|
44
|
+
|=======================================================================
|
45
|
+
|
46
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
47
|
+
output plugins.
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
[id="plugins-{type}s-{plugin}-description"]
|
52
|
+
===== `description`
|
53
|
+
|
54
|
+
* Value type is <<string,string>>
|
55
|
+
* Default value is `"Logstash event for %{host}"`
|
56
|
+
|
57
|
+
Custom description
|
58
|
+
|
59
|
+
[id="plugins-{type}s-{plugin}-details"]
|
60
|
+
===== `details`
|
61
|
+
|
62
|
+
* Value type is <<hash,hash>>
|
63
|
+
* Default value is `{"timestamp"=>"%{@timestamp}", "message"=>"%{message}"}`
|
64
|
+
|
65
|
+
The event details. These might be data from the Logstash event fields you wish to include.
|
66
|
+
Tags are automatically included if detected so there is no need to explicitly add them here.
|
67
|
+
|
68
|
+
[id="plugins-{type}s-{plugin}-event_type"]
|
69
|
+
===== `event_type`
|
70
|
+
|
71
|
+
* Value can be any of: `trigger`, `acknowledge`, `resolve`
|
72
|
+
* Default value is `"trigger"`
|
73
|
+
|
74
|
+
Event type
|
75
|
+
|
76
|
+
[id="plugins-{type}s-{plugin}-incident_key"]
|
77
|
+
===== `incident_key`
|
78
|
+
|
79
|
+
* Value type is <<string,string>>
|
80
|
+
* Default value is `"logstash/%{host}/%{type}"`
|
81
|
+
|
82
|
+
The service key to use. You'll need to set this up in PagerDuty beforehand.
|
83
|
+
|
84
|
+
[id="plugins-{type}s-{plugin}-pdurl"]
|
85
|
+
===== `pdurl`
|
86
|
+
|
87
|
+
* Value type is <<string,string>>
|
88
|
+
* Default value is `"https://events.pagerduty.com/generic/2010-04-15/create_event.json"`
|
89
|
+
|
90
|
+
PagerDuty API URL. You shouldn't need to change this, but is included to allow for flexibility
|
91
|
+
should PagerDuty iterate the API and Logstash hasn't been updated yet.
|
92
|
+
|
93
|
+
[id="plugins-{type}s-{plugin}-service_key"]
|
94
|
+
===== `service_key`
|
95
|
+
|
96
|
+
* This is a required setting.
|
97
|
+
* Value type is <<string,string>>
|
98
|
+
* There is no default value for this setting.
|
99
|
+
|
100
|
+
The PagerDuty Service API Key
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
105
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-pagerduty'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.4'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "The PagerDuty output will send notifications based on pre-configured services and escalation policies."
|
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-pagerduty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
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
|
@@ -72,7 +72,9 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 1.21.0
|
75
|
-
description: This gem is a Logstash plugin required to be installed on top of the
|
75
|
+
description: This gem is a Logstash plugin required to be installed on top of the
|
76
|
+
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
77
|
+
gem is not a stand-alone program
|
76
78
|
email: info@elastic.co
|
77
79
|
executables: []
|
78
80
|
extensions: []
|
@@ -84,6 +86,7 @@ files:
|
|
84
86
|
- LICENSE
|
85
87
|
- NOTICE.TXT
|
86
88
|
- README.md
|
89
|
+
- docs/index.asciidoc
|
87
90
|
- lib/logstash/outputs/pagerduty.rb
|
88
91
|
- logstash-output-pagerduty.gemspec
|
89
92
|
- spec/outputs/pagerduty_spec.rb
|
@@ -110,10 +113,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
113
|
version: '0'
|
111
114
|
requirements: []
|
112
115
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.6.11
|
114
117
|
signing_key:
|
115
118
|
specification_version: 4
|
116
|
-
summary: The PagerDuty output will send notifications based on pre-configured services
|
119
|
+
summary: The PagerDuty output will send notifications based on pre-configured services
|
120
|
+
and escalation policies.
|
117
121
|
test_files:
|
118
122
|
- spec/outputs/pagerduty_spec.rb
|
119
123
|
- spec/spec_helper.rb
|