-
Notifications
You must be signed in to change notification settings - Fork 53
docker 部署 插件时,不生效。也没有错误日志,请问可以从哪方面查看? #10
Comments
正常的日志贴一下看看,把你的配置文件贴一下,敏感参数脱下敏 |
docker 中没有输出错误日志,配置文件,只添加微信部分 |
bash-4.3# cat config.yaml This is the folder that contains the rule yaml filesAny .yaml file will be loaded as a rulerules_folder: /opt/elastalert/rules How often ElastAlert will query ElasticsearchThe unit can be anything from weeks to secondsrun_every: ElastAlert will buffer results from the most recentperiod of time, in case some log sources are not in real timebuffer_time: The Elasticsearch hostname for metadata writebackNote that every rule can have its own Elasticsearch hostes_host: 10.27.167.142 The Elasticsearch portes_port: 9200 The AWS region to use. Set this when using AWS-managed elasticsearch#aws_region: us-east-1 The AWS profile to use. Use this if you are using an aws-cli profile.See http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.htmlfor details#profile: test Optional URL prefix for Elasticsearch#es_url_prefix: elasticsearch Connect with TLS to Elasticsearch#use_ssl: True Verify TLS certificates#verify_certs: True GET request with body is the default option for Elasticsearch.If it fails for some reason, you can pass 'GET', 'POST' or 'source'.See http://elasticsearch-py.readthedocs.io/en/master/connection.html?highlight=send_get_body_as#transportfor details#es_send_get_body_as: GET Option basic-auth username and password for Elasticsearch#es_username: someusername The index on es_host which is used for metadata storageThis can be a unmapped index, but it is recommended that you runelastalert-create-index to set a mappingwriteback_index: elastalert_status If an alert fails for some reason, ElastAlert will retry |
bash-4.3# ls link to a kibana dashboard with correct time settings#use_kibana4_dashboard: "http://localhost:5601/app/kibana#/dashboard/monitoring-dashboard"
#只需要的字段 https://elastalert.readthedocs.io/en/latest/ruletypes.html#include (Required)The alert is use when a match is foundalert:
email相关配置(required, email specific)a list of email addresses to send alerts to#email: #微信企业号相关 (required, email specific)a list of email addresses to send alerts to#后台登陆后【设置】->【权限管理】->【普通管理组】->【创建并设置通讯录和应用权限】->【CorpID,Secret】 标签id,多个用 | 分隔#tag_id: xx |
No description provided.
The text was updated successfully, but these errors were encountered: