Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "watch_id": "eve-error-prod",
- "node": "VOHGKu7SRzut0oM5dyUNQg",
- "state": "execution_not_needed",
- "user": "elastic",
- "status": {
- "state": {
- "active": true,
- "timestamp": "2020-03-19T09:08:40.697Z"
- },
- "last_checked": "2020-03-20T07:02:03.901Z",
- "last_met_condition": "2020-03-20T07:01:03.760Z",
- "actions": {
- "freshdesk_alert": {
- "ack": {
- "timestamp": "2020-03-19T09:08:40.697Z",
- "state": "awaits_successful_execution"
- },
- "last_execution": {
- "timestamp": "2020-03-20T07:01:03.760Z",
- "successful": false,
- "reason": "received [502] status code"
- }
- },
- "notify-slack": {
- "ack": {
- "timestamp": "2020-03-20T07:02:03.901Z",
- "state": "awaits_successful_execution"
- },
- "last_execution": {
- "timestamp": "2020-03-20T07:01:03.760Z",
- "successful": true
- },
- "last_successful_execution": {
- "timestamp": "2020-03-20T07:01:03.760Z",
- "successful": true
- }
- },
- "email_administrator": {
- "ack": {
- "timestamp": "2020-03-20T07:02:03.901Z",
- "state": "awaits_successful_execution"
- },
- "last_execution": {
- "timestamp": "2020-03-20T07:01:03.760Z",
- "successful": true
- },
- "last_successful_execution": {
- "timestamp": "2020-03-20T07:01:03.760Z",
- "successful": true
- }
- }
- },
- "execution_state": "execution_not_needed",
- "version": -1
- },
- "trigger_event": {
- "type": "schedule",
- "triggered_time": "2020-03-20T07:02:03.901Z",
- "schedule": {
- "scheduled_time": "2020-03-20T07:02:03.401Z"
- }
- },
- "input": {
- "search": {
- "request": {
- "search_type": "query_then_fetch",
- "indices": [
- "eve-*"
- ],
- "rest_total_hits_as_int": true,
- "body": {
- "query": {
- "bool": {
- "must": [
- {
- "match": {
- "log_level": "[error]"
- }
- },
- {
- "match": {
- "fields.environment_type": "production"
- }
- },
- {
- "range": {
- "@timestamp": {
- "gte": "now-1m"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- "condition": {
- "compare": {
- "ctx.payload.hits.total": {
- "gt": 0
- }
- }
- },
- "result": {
- "execution_time": "2020-03-20T07:02:03.901Z",
- "execution_duration": 1355,
- "input": {
- "type": "search",
- "status": "success",
- "payload": {
- "_shards": {
- "total": 31,
- "failed": 0,
- "successful": 31,
- "skipped": 0
- },
- "hits": {
- "hits": [],
- "total": 0,
- "max_score": null
- },
- "took": 1354,
- "timed_out": false
- },
- "search": {
- "request": {
- "search_type": "query_then_fetch",
- "indices": [
- "eve-*"
- ],
- "rest_total_hits_as_int": true,
- "body": {
- "query": {
- "bool": {
- "must": [
- {
- "match": {
- "log_level": "[error]"
- }
- },
- {
- "match": {
- "fields.environment_type": "production"
- }
- },
- {
- "range": {
- "@timestamp": {
- "gte": "now-1m"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- "condition": {
- "type": "compare",
- "status": "success",
- "met": false,
- "compare": {
- "resolved_values": {
- "ctx.payload.hits.total": 0
- }
- }
- },
- "actions": []
- },
- "messages": []
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement