Advertisement
Guest User

Untitled

a guest
Aug 1st, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. PUT /watcher/watch/httpd_log_error_watch8
  2. {
  3.  
  4. "trigger" : { "schedule" : { "interval" : "10s" } },
  5.  
  6. "input" : {
  7.  
  8. "search" : {
  9.  
  10. "request" : {
  11.  
  12. "indices" : [ "filebeat*" ],
  13.  
  14. "body" : {
  15.  
  16. "query" : {
  17.  
  18. "match" : { "host": "test82.kartikv.com" }
  19.  
  20. }
  21.  
  22. }
  23.  
  24. }
  25.  
  26. }
  27.  
  28. },
  29.  
  30. "condition" : {
  31.  
  32. "compare" : { "host" : { "eq" : "test82.kartikv.com" }}
  33.  
  34. },
  35.  
  36. "actions" : {
  37.  
  38. "email_administrator" : {
  39.  
  40. "email" : {
  41.  
  42. "to" : "kartik@kartikv.com",
  43.  
  44. "subject" : "Encountered {{message}} test82 errors",
  45.  
  46. "body" : "test82 in the weblog"
  47.  
  48. }
  49.  
  50. }
  51.  
  52. }
  53.  
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement