Configure Alerts


You can configure alerts in Kibana to notify in case of errors or task failures. When data from one or more Elasticsearch indices meets the conditions specified, alerts are triggered.

Jiffy Task failures are notified by email to the support team(

  1. Login to Kibana dashboard.
  2. Click the Image description icon and select the Alerting option.

Image description


  1. Navigate to Monitors tab.
  2. Click the Create Monitor button. Image description
  3. Enter the Monitor name, for example, JIFFY Task Failure Alert.
  4. Select Define using extraction query option from the Method of definition drop-down.
  5. Select index as jiffy.* to scan all jiffy application logs.
  6. Type the query in the Define extraction query field.
  7. Enter the interval for the monitor to run in the Monitor schedule field.
  8. Click the Create button.

Image description

Sample query to search for errors under all jiffy application logs in the last 5 minutes

"size": 3,
"query": {
"bool": {
"filter": [
"match_all": {
"boost": 1 } },
"match_phrase": {
"level": {
"query": "ERROR",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1 } } },
"range": {
"@timestamp": {
"from": "now-5m",
"to": "now",
"include_lower": true,
"include_upper": false,
"boost": 1 } } }
"adjust_pure_negative": true,
"boost": 1
"version": true,
"_source": {
"includes": [],
"excludes": []
"stored_fields": "*",
"docvalue_fields": [
"field": "@timestamp",
"format": "date_time"
"script_fields": {},
"sort": [
"@timestamp": {
"order": "desc",
"unmapped_type": "boolean"
} ],
"aggregations": {
"2": {
"date_histogram": {
"field": "@timestamp",
"time_zone": "Asia/Calcutta",
"fixed_interval": "30s",
"offset": 0,
"order": {
"_key": "asc"
"keyed": false,
"min_doc_count": 1 } } } }

Trigger Alerts

All the monitors created are listed under the Trigger Section.

  1. Select Name of the monitor for which you want to trigger the Alert, from the Triggers drop-down. Image description
  2. Click the Create button.
  3. Enter the Action name, Destination, Message subject, and Message in the Configure Actions field.

Image description

If Conditions specified in the Monitor section are met, Alerts are triggered.

To know more about Alerting in Kibana, click here.

See Also

Did you find what you were looking for?