kibana plugin安装sentinl

  1. ./kibana-plugin install file:~/sentinl-v7.6.1.zip

Plugin sentinl [7.6.1] is incompatible with Kibana [7.9.0]

  1. {
  2. "actions": {
  3. "test-dingding": {
  4. "name": "waring_error_log_push_dingding",
  5. "throttle_period": "0h1m0s",
  6. "webhook": {
  7. "priority": "high",
  8. "stateless": false,
  9. "method": "POST",
  10. "host": "oapi.dingtalk.com",
  11. "port": "443",
  12. "path": "/robot/send?access_token=fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  13. "body": " {\"msgtype\": \"markdown\",\"markdown\": {\"title\":\"DEV_time.out\",\"text\": \"# Dev预警 \\t\\n ### 主机 | ```\\n{{payload.hits.hits.0._index}}\\n``` | \\t\\n ### Project | ```\\n{{payload.hits.hits.0._source.service}}\\n``` | \\t\\n ### 最近一分钟发生次数 | ```\\n{{payload.hits.total}}\\n``` | \\t\\n ### 告警内容:```\\n{{payload.hits.hits.0._source.message}}\\n``` \\t\\n \" } }",
  14. "params": {
  15. "watcher": "{{watcher.title}}",
  16. "payload_count": "{{payload.hits.total}}"
  17. },
  18. "headers": {
  19. "Content-Type": "application/json"
  20. },
  21. "auth": "钉钉账号:钉钉密码",
  22. "message": "业务功能告警",
  23. "use_https": true,
  24. "save_payload": false
  25. }
  26. }
  27. },
  28. "input": {
  29. "search": {
  30. "request": {
  31. "index": [
  32. "applog-*"
  33. ],
  34. "body": {
  35. "query": {
  36. "bool": {
  37. "must": [
  38. {
  39. "query_string": {
  40. "analyze_wildcard": true,
  41. "query": "\"error\""
  42. }
  43. },
  44. {
  45. "range": {
  46. "@timestamp": {
  47. "gte": "now-1h",
  48. "lte": "now",
  49. "format": "epoch_millis"
  50. }
  51. }
  52. }
  53. ],
  54. "must_not": []
  55. }
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "condition": {
  62. "script": {
  63. "script": "payload.hits.total >=1"
  64. }
  65. },
  66. "transform": {},
  67. "trigger": {
  68. "schedule": {
  69. "later": "every 20 minutes"
  70. }
  71. },
  72. "disable": true,
  73. "report": false,
  74. "title": "警告和错误日志推送钉钉"
  75. }