December 2017
Intermediate to advanced
434 pages
10h 29m
English
This output plugin will send notifications based on pre-configured services and escalation policies. The only required parameter for this plugin is the service_key to specify the Service API Key.
Let's see a simple example with basic pagerduty configuration. In the following configuration, Elasticsearch is queried against the index "ngnixlogs" for all documents matching the statuscode:404, and pagerduty events are raised for each document returned by Elasticsearch:
#kafka.confinput {
elasticsearch {
hosts => "localhost:9200"
index => "ngnixlogs" query => '{ "query": { "match": { "statuscode": 404} }}' } } output { pagerduty { service_key => "service_api_key" details => { "timestamp" => "%{[@timestamp]}" "message" => "Problem found: ...Read now
Unlock full access