Advertisement
Guest User

Untitled

a guest
Mar 20th, 2020
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. {
  2. "watch_id": "eve-error-prod",
  3. "node": "VOHGKu7SRzut0oM5dyUNQg",
  4. "state": "execution_not_needed",
  5. "user": "elastic",
  6. "status": {
  7. "state": {
  8. "active": true,
  9. "timestamp": "2020-03-19T09:08:40.697Z"
  10. },
  11. "last_checked": "2020-03-20T07:02:03.901Z",
  12. "last_met_condition": "2020-03-20T07:01:03.760Z",
  13. "actions": {
  14. "freshdesk_alert": {
  15. "ack": {
  16. "timestamp": "2020-03-19T09:08:40.697Z",
  17. "state": "awaits_successful_execution"
  18. },
  19. "last_execution": {
  20. "timestamp": "2020-03-20T07:01:03.760Z",
  21. "successful": false,
  22. "reason": "received [502] status code"
  23. }
  24. },
  25. "notify-slack": {
  26. "ack": {
  27. "timestamp": "2020-03-20T07:02:03.901Z",
  28. "state": "awaits_successful_execution"
  29. },
  30. "last_execution": {
  31. "timestamp": "2020-03-20T07:01:03.760Z",
  32. "successful": true
  33. },
  34. "last_successful_execution": {
  35. "timestamp": "2020-03-20T07:01:03.760Z",
  36. "successful": true
  37. }
  38. },
  39. "email_administrator": {
  40. "ack": {
  41. "timestamp": "2020-03-20T07:02:03.901Z",
  42. "state": "awaits_successful_execution"
  43. },
  44. "last_execution": {
  45. "timestamp": "2020-03-20T07:01:03.760Z",
  46. "successful": true
  47. },
  48. "last_successful_execution": {
  49. "timestamp": "2020-03-20T07:01:03.760Z",
  50. "successful": true
  51. }
  52. }
  53. },
  54. "execution_state": "execution_not_needed",
  55. "version": -1
  56. },
  57. "trigger_event": {
  58. "type": "schedule",
  59. "triggered_time": "2020-03-20T07:02:03.901Z",
  60. "schedule": {
  61. "scheduled_time": "2020-03-20T07:02:03.401Z"
  62. }
  63. },
  64. "input": {
  65. "search": {
  66. "request": {
  67. "search_type": "query_then_fetch",
  68. "indices": [
  69. "eve-*"
  70. ],
  71. "rest_total_hits_as_int": true,
  72. "body": {
  73. "query": {
  74. "bool": {
  75. "must": [
  76. {
  77. "match": {
  78. "log_level": "[error]"
  79. }
  80. },
  81. {
  82. "match": {
  83. "fields.environment_type": "production"
  84. }
  85. },
  86. {
  87. "range": {
  88. "@timestamp": {
  89. "gte": "now-1m"
  90. }
  91. }
  92. }
  93. ]
  94. }
  95. }
  96. }
  97. }
  98. }
  99. },
  100. "condition": {
  101. "compare": {
  102. "ctx.payload.hits.total": {
  103. "gt": 0
  104. }
  105. }
  106. },
  107. "result": {
  108. "execution_time": "2020-03-20T07:02:03.901Z",
  109. "execution_duration": 1355,
  110. "input": {
  111. "type": "search",
  112. "status": "success",
  113. "payload": {
  114. "_shards": {
  115. "total": 31,
  116. "failed": 0,
  117. "successful": 31,
  118. "skipped": 0
  119. },
  120. "hits": {
  121. "hits": [],
  122. "total": 0,
  123. "max_score": null
  124. },
  125. "took": 1354,
  126. "timed_out": false
  127. },
  128. "search": {
  129. "request": {
  130. "search_type": "query_then_fetch",
  131. "indices": [
  132. "eve-*"
  133. ],
  134. "rest_total_hits_as_int": true,
  135. "body": {
  136. "query": {
  137. "bool": {
  138. "must": [
  139. {
  140. "match": {
  141. "log_level": "[error]"
  142. }
  143. },
  144. {
  145. "match": {
  146. "fields.environment_type": "production"
  147. }
  148. },
  149. {
  150. "range": {
  151. "@timestamp": {
  152. "gte": "now-1m"
  153. }
  154. }
  155. }
  156. ]
  157. }
  158. }
  159. }
  160. }
  161. }
  162. },
  163. "condition": {
  164. "type": "compare",
  165. "status": "success",
  166. "met": false,
  167. "compare": {
  168. "resolved_values": {
  169. "ctx.payload.hits.total": 0
  170. }
  171. }
  172. },
  173. "actions": []
  174. },
  175. "messages": []
  176. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement