Skip to content

Instantly share code, notes, and snippets.

@sakoken
Last active January 26, 2017 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakoken/db41b3892fbe537f4ae66bf6e08dc016 to your computer and use it in GitHub Desktop.
Save sakoken/db41b3892fbe537f4ae66bf6e08dc016 to your computer and use it in GitHub Desktop.
elastalertを利用したslackへのアラート ref: http://qiita.com/sakoken/items/98349e6f765bb17906e7
rules_folder: /elastalertがインストールされているディレクトリ/rules 
Traceback (most recent call last):
・・・
pkg_resources.DistributionNotFound: botocore
python elastalert/elastalert/create_index.py
Traceback (most recent call last):
File "elastalert/elastalert/test_rule.py", line 20, in <module>
import elastalert.config
ImportError: No module named config
cp elastalert/elastalert/test_rule.py elastalert/
python elastalert/test_rule.py elastalert/rules/xxx.yaml
directory=/elastalertがインストールされているディレクトリ/
use_kibana4_dashboard: http://kibana/app/kibana#/dashboard/applog
alert_text_type: exclude_fields
alert_subject: エラーが発生しました。(<http://indexとtypeとidをつかってログへのリンクを組み立てる/{0}/{1}/?id={2}|LogDetail> | <{3}|DashBoard>)
alert_subject_args:
- _index
- _type
- _id
- kibana_link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment