Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alert handler to create Datadog Events #3164

Closed
wants to merge 192 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
0fd1f52
corrected spike aggregation support for avg,min,max
dylanjf Jan 11, 2019
49d9b05
correct order of variables for spike alert text
dylanjf Jan 14, 2019
6849cda
linebreak fix for travis CI
dylanjf Jan 14, 2019
ebd3f9e
force elasticsearch 6.3 on build
dylanjf Apr 23, 2019
885896c
Add Docs: Elasticsearch Security Privileges
abhishekjiitr Aug 19, 2019
5326ac9
Enabling to embed images into email alerter
fpompermaier Dec 11, 2019
fbce0fb
agg_type percentiles fixes 2713
Apr 21, 2020
b9963d9
Adjusting elastalert/ruletypes.py so that the functions 'append' and …
gminog-opap Apr 24, 2020
50bcd94
Adjusting elastalert/ruletypes.py so that the functions 'append' and …
gminog-opap Apr 24, 2020
cde4ac3
Add ca certs and ignore ssl to HTTP Post
Goggin Apr 27, 2020
ff899b9
Update Docs for Zabbix
nsano-rururu May 5, 2020
2444267
Add LineNotify to alerts mapping
nsano-rururu May 5, 2020
f6f57a5
Fix SNS Program & Docs
nsano-rururu May 9, 2020
c77c995
Fix SNS Program & Docs_2
nsano-rururu May 9, 2020
7270979
Adds --silence_qk_value option to elastalert
JasperJuergensen May 10, 2020
2c05393
Merge branch 'master' of https://github.com/nsano-rururu/elastalert i…
nsano-rururu May 14, 2020
496a04f
Sync requirements.txt and setup.py & update py-zabbix
nsano-rururu May 22, 2020
cc8d49e
t push origin sync-requirements-and-setupMerge branch 'master' of htt…
nsano-rururu Jun 2, 2020
f8b0415
Added Squadcast http post alert config
raghuchinnannan Jun 10, 2020
fa5a16b
Adjusted the space in the YAML config
raghuchinnannan Jun 10, 2020
c15364a
Replaced tabs with spaces
raghuchinnannan Jun 10, 2020
8a3fa30
Fixed the build error by matching the number of ~ to the length of th…
raghuchinnannan Jun 16, 2020
17ffe9a
Merge branch 'master' of https://github.com/nsano-rururu/elastalert i…
nsano-rururu Jun 21, 2020
a107491
fix attribute error is raised when query ran for future
Swapnil811 Jun 23, 2020
6b04f9e
Fix tests to include new kwarg verify to requests.post
Goggin Jul 9, 2020
a7144d1
Remove Stride integration
nsano-rururu Jul 25, 2020
ef8484c
Remove import HTMLParser
nsano-rururu Jul 25, 2020
d2cb0ed
Fixed checkstyle errors
fpompermaier Jul 27, 2020
b739aaa
kibana discover 7.4/7.5/7.6/7.7/7.8 support
nsano-rururu Aug 12, 2020
39a04aa
Kibana 7.9
nsano-rururu Aug 22, 2020
87ba1d1
TheHive alerter: Allow severity and tlp to be set by rule
defensivedepth Sep 2, 2020
205b735
Merge pull request #1 from defensivedepth/patch-4
jertel Sep 2, 2020
59ad4ac
fix a configuration options of docs
Sep 12, 2020
62924c4
Add support for custom_details in the PagerDuty alerter v2 module
Oct 1, 2020
ef22a8e
Merge branch 'master' of https://github.com/nsano-rururu/elastalert i…
nsano-rururu Oct 16, 2020
d818bfa
Fix initializing self.thread_data.alerts_sent for running elastalert-…
daichi703n Oct 19, 2020
648f199
Add Jinja Requirement to setup.py
sherifabdlnaby Oct 21, 2020
1b4875b
Add Jinja2 Template option to `alert_text_type`
sherifabdlnaby Oct 17, 2020
8f0b5d9
Update Docs about using Jinja2 Template in `alert_text`.
sherifabdlnaby Oct 17, 2020
a9f0d1d
Fix for the mapping error reported in #2899.
Oct 28, 2020
873f41b
Fix Stomp
nsano-rururu Nov 4, 2020
66d5d22
Del the forgotten code of new_style_string_format
nsano-rururu Nov 7, 2020
814b415
document SNS to AWS SNS
nsano-rururu Nov 7, 2020
c62c1a7
Fix elasticsearch-py versionup test_rule.py error
nsano-rururu Nov 22, 2020
af6e71a
Switch out abandoned blist lib for sortedcontainers lib
jertel Nov 25, 2020
015ee1f
Merge pull request #2 from Yelp/master
jertel Nov 25, 2020
292dcc4
Merge pull request #3 from jertel/master
jertel Nov 25, 2020
ff65ee0
Kibana 7.10
nsano-rururu Dec 9, 2020
b7dc75d
Fix docker test
nsano-rururu Dec 29, 2020
474c69c
Update loaders.py
nsano-rururu Jan 4, 2021
d38ebcd
Update loaders.py
nsano-rururu Jan 11, 2021
f77b746
Update requirements.txt
nsano-rururu Jan 11, 2021
d22e3e5
Update setup.py
nsano-rururu Jan 11, 2021
4b6e09d
Merge pull request #4 from nsano-rururu/fix-docker-test
jertel Jan 12, 2021
7a69cd9
Merge pull request #5 from nsano-rururu/fix_test_rule_error
jertel Jan 12, 2021
4ca0725
Merge pull request #6 from nsano-rururu/fix_stomp
jertel Jan 12, 2021
995e785
Merge pull request #7 from nsano-rururu/fix-linenotify-error
jertel Jan 12, 2021
83ecb8f
Merge remote-tracking branch 'upstream/master' into sync-requirements…
nsano-rururu Jan 12, 2021
f157207
Merge branch 'sync-requirements-and-setup' of https://github.com/nsan…
nsano-rururu Jan 12, 2021
39b5670
Merge remote-tracking branch 'upstream/master' into kibana-discover
nsano-rururu Jan 12, 2021
a6201e2
Merge remote-tracking branch 'upstream/master' into delete-stride-int…
nsano-rururu Jan 12, 2021
4ae95e4
Merge pull request #10 from nsano-rururu/delete-stride-integration
jertel Jan 12, 2021
f6e2364
Merge pull request #9 from daichi703n/fix/initialize_alerts_sent
jertel Jan 12, 2021
a028262
Merge pull request #8 from nsano-rururu/sync-requirements-and-setup
jertel Jan 12, 2021
84c93c8
Fix documents
nsano-rururu Jan 12, 2021
9eaa68e
Undo readme.md and elastalert.rst
nsano-rururu Jan 13, 2021
fc8a275
Merge pull request #12 from nsano-rururu/zabbix-docs-update
jertel Jan 13, 2021
4652409
Merge pull request #13 from nsano-rururu/fix-aws_profile-sns
jertel Jan 13, 2021
dfe7d61
Merge pull request #14 from nsano-rururu/kibana-discover
jertel Jan 13, 2021
c5234ab
Merge pull request #15 from nsano-rururu/fix-documents
jertel Jan 13, 2021
29ea671
Remove hipchat & Fix loaders.py
nsano-rururu Jan 13, 2021
77d301c
Merge pull request #16 from nsano-rururu/remove-hipchat
jertel Jan 13, 2021
5e22bff
Merge pull request #17 from JasperJuergensen/silence_qk_value
jertel Jan 13, 2021
f617c93
Merge branch 'alt' into jinja-engine
sherifabdlnaby Jan 13, 2021
b30a58e
Typo in example_rules/ssh.yaml
nsano-rururu Jan 13, 2021
a9a417c
Remove duplicate property in example config file
nsano-rururu Jan 13, 2021
4b928d7
Fixed the logging property in config.yaml.example
nsano-rururu Jan 13, 2021
5a5c49a
add tzlocal<3.0
nsano-rururu Jan 14, 2021
3bc7297
Update running_elastalert.rst
nsano-rururu Jan 14, 2021
26cc8a6
add opsgenie_addr to docs
nsano-rururu Jan 14, 2021
bb46314
fix ruletypes.rst typo
nsano-rururu Jan 14, 2021
9edf294
Remove Duplicate Key in Schema YAML
nsano-rururu Jan 14, 2021
fd160c5
Merge pull request #18 from sherifabdlnaby/jinja-engine
jertel Jan 14, 2021
a5cabed
Merge pull request #19 from nsano-rururu/fix-example
jertel Jan 14, 2021
b1ac379
Merge pull request #20 from nsano-rururu/add_tzlocal
jertel Jan 14, 2021
2ff1bb5
Merge pull request #21 from nsano-rururu/update_running_elastalert
jertel Jan 14, 2021
d343dd1
Merge pull request #22 from nsano-rururu/add_opsgenie_addr_to_docs
jertel Jan 14, 2021
41acedb
Merge pull request #23 from nsano-rururu/fix_ruletypes_rst
jertel Jan 14, 2021
96a2fa5
Merge pull request #24 from nsano-rururu/remove_duplicate_key_schema_…
jertel Jan 14, 2021
62efda0
fix zabbix
nsano-rururu Jan 14, 2021
3dc6188
Merge remote-tracking branch 'jertel/alt' into fix_zabbix
nsano-rururu Jan 14, 2021
d45a83f
update alert types and Third Party Tools
nsano-rururu Jan 14, 2021
84888b0
Fix Logging inconsistencies
nsano-rururu Jan 14, 2021
6e68281
Merge pull request #25 from nsano-rururu/update_readme
jertel Jan 14, 2021
2b9b815
Merge pull request #26 from nsano-rururu/fix_zabbix
jertel Jan 14, 2021
7ed2e63
Merge pull request #27 from nsano-rururu/fix_logging
jertel Jan 14, 2021
72201da
Fixing slack ssl verification
nsano-rururu Jan 15, 2021
deca0b0
Fix is_enabled not work with reload
nsano-rururu Jan 15, 2021
5b40532
Merge pull request #28 from drboone/fix2899
jertel Jan 15, 2021
cef1961
Merge pull request #29 from nsano-rururu/del_new_style_string_format
jertel Jan 15, 2021
17640fe
Merge pull request #30 from nsano-rururu/fix-slack-ssl-verification
jertel Jan 15, 2021
271f153
Merge pull request #31 from nsano-rururu/fix-is-enabled
jertel Jan 15, 2021
84a9282
Merge pull request #33 from raghuchinnannan/docs/squadcast-http-alerting
jertel Jan 17, 2021
c41e610
add discord alerter
nsano-rururu Jan 17, 2021
3425e4a
fix ruletypes.rst
nsano-rururu Jan 17, 2021
3c00fac
Merge pull request #34 from nsano-rururu/add_discord
jertel Jan 17, 2021
62c1504
Add CI workflow
jertel Jan 17, 2021
49710aa
Update readme with fork information
jertel Jan 18, 2021
168b2f8
Merge pull request #35 from jertel/ci-test
jertel Jan 18, 2021
1da295b
Merge pull request #36 from Zentrust/master
jertel Jan 21, 2021
0ff08d0
Merge pull request #37 from gminog/master
jertel Jan 21, 2021
15c74e8
Merge pull request #38 from fpompermaier/master
jertel Jan 21, 2021
376ee8c
Merge pull request #39 from abhishekjiitr/add-es-permissions
jertel Jan 21, 2021
fdc6bb7
Merge pull request #40 from Goggin/http_cacerts
jertel Jan 21, 2021
f5298b2
Merge pull request #43 from durarumin/fix_manual
jertel Jan 21, 2021
75cba35
Merge pull request #44 from Swapnil811/bug_in_elastalert
jertel Jan 21, 2021
109c186
Merge pull request #41 from moix/master
jertel Jan 21, 2021
0bf055d
merge resolve
dylanjf Jan 21, 2021
0bcf518
Merge pull request #45 from dylanjf/master
jertel Jan 24, 2021
0bd5192
Add Dingtalk
nsano-rururu Jan 29, 2021
8173a70
Merge pull request #46 from nsano-rururu/add_dingtalk
jertel Jan 30, 2021
f61bb91
Add Chatwork Alerter / Fix a typo
nsano-rururu Jan 30, 2021
ca9d51c
Merge pull request #47 from nsano-rururu/add_chatwork
jertel Jan 30, 2021
6b6af45
Update requirements-dev.txt
nsano-rururu Feb 12, 2021
325d109
Merge pull request #49 from nsano-rururu/update_requirements-dev
jertel Feb 12, 2021
8744930
Creates a new rule config parameter that "use_local_time_for_query".
dilaverdemirel Feb 21, 2021
0fa2e9d
Adds information about the "use_local_time_for_query" parameter.
dilaverdemirel Feb 21, 2021
0dd8cd8
Fixes the documentation error.
dilaverdemirel Feb 21, 2021
b27a50e
Fixes styling problems.
dilaverdemirel Feb 21, 2021
55562c2
Rename "use_local_time_for_query" to "query_timezone".
dilaverdemirel Feb 23, 2021
b5a55ed
Fix styling problem.
dilaverdemirel Feb 23, 2021
1da7fe2
Merge pull request #51 from dilaverdemirel/alt
jertel Feb 23, 2021
6f35f82
allow alerta_severity to be set dynamically
mostafahussein Feb 24, 2021
48aef40
Merge pull request #52 from mostafahussein/alerta-pr
jertel Feb 25, 2021
d54ddf0
Kibana Discover support kibana 7.11
nsano-rururu Feb 25, 2021
9ad0555
Merge pull request #53 from nsano-rururu/kibana-discover711
jertel Feb 25, 2021
6c142ce
Update pylint and tox
nsano-rururu Feb 25, 2021
2424be8
Merge branch 'alt' into pylint27to28-and-tox3214to3220
jertel Feb 25, 2021
0b00df1
Merge pull request #54 from nsano-rururu/pylint27to28-and-tox3214to3220
jertel Feb 25, 2021
a786205
Add a default description for TheHive alerts if one isn't provided
Feb 26, 2021
85d1a7a
Merge pull request #55 from ferozsalam/add-default-thehive-description
jertel Feb 26, 2021
5ce0a44
added docs slack
nsano-rururu Feb 28, 2021
450ebe4
add docs jira_assignee
nsano-rururu Feb 28, 2021
00ff88c
Merge pull request #57 from nsano-rururu/add_docs_slack_parse_overrid…
jertel Feb 28, 2021
746e851
Merge branch 'alt' into add_docs_jira_assignee
jertel Feb 28, 2021
50ba1e0
Merge pull request #58 from nsano-rururu/add_docs_jira_assignee
jertel Feb 28, 2021
c5f1f1c
Update README to point to new docs, deprecate old README
ferozsalam Mar 1, 2021
19063f4
Merge branch 'alt' into update-docs-links
ferozsalam Mar 1, 2021
46e4818
Merge pull request #59 from ferozsalam/update-docs-links
jertel Mar 1, 2021
4f94769
Bump coverage from 5.4 to 5.5
nsano-rururu Mar 1, 2021
91fa14c
Merge pull request #60 from nsano-rururu/coverage54to55
jertel Mar 2, 2021
2f36a08
Remove mention of new alert platforms from the old README
ferozsalam Mar 2, 2021
d3fd9bb
Migrate the FAQ to Read the Docs
ferozsalam Mar 2, 2021
d701105
Docker test python 3.6 to 3.9
nsano-rururu Mar 2, 2021
0e7d68c
Add Markdown converter to dev dependency list
ferozsalam Mar 2, 2021
951c6c1
Format line lengths for readability
ferozsalam Mar 2, 2021
d07d183
Merge pull request #61 from ferozsalam/remove-new-readme-material
jertel Mar 2, 2021
570a24b
Merge branch 'alt' into docker-test_py36topy39
jertel Mar 2, 2021
1a45af9
Merge pull request #62 from nsano-rururu/docker-test_py36topy39
jertel Mar 2, 2021
0ee590f
Merge branch 'alt' into add-faq-documentation
jertel Mar 2, 2021
31f04f4
Update the docs configuration to work better with Markdown
ferozsalam Mar 2, 2021
7cd1055
Merge pull request #63 from ferozsalam/add-faq-documentation
jertel Mar 2, 2021
fb45753
Bump tox from 3.22.0 to 3.23.0
nsano-rururu Mar 4, 2021
0693c07
Merge pull request #64 from nsano-rururu/tox3220to3230
jertel Mar 4, 2021
f95b9d8
fix docs slack_timeout
nsano-rururu Mar 14, 2021
e438760
Remove unused items in alerta from schema.yaml
nsano-rururu Mar 14, 2021
a33afd3
Update schema.yaml
nsano-rururu Mar 14, 2021
c1081a5
Merge pull request #66 from nsano-rururu/fix_docs_slack_timeout
jertel Mar 14, 2021
a6d65f4
Merge branch 'alt' into delete_schema_yaml_alerta
jertel Mar 14, 2021
c41c2f9
Merge pull request #67 from nsano-rururu/delete_schema_yaml_alerta
jertel Mar 14, 2021
cde1644
Fix search syntax on aggregations
ferozsalam Mar 15, 2021
172bd5f
Update unit tests to match new query structure
ferozsalam Mar 15, 2021
2de4050
Merge pull request #68 from ferozsalam/fix-aggregation-syntax
jertel Mar 15, 2021
14cada5
Bump jinja2 from 2.10.1 to 2.11.3
dependabot[bot] Mar 20, 2021
b5278b0
Merge pull request #69 from jertel/dependabot/pip/jinja2-2.11.3
jertel Mar 20, 2021
0cfe1bf
allow loading jinja templates from filesystem - and to extend templates
drakaru Mar 21, 2021
f15b8aa
update docs
drakaru Mar 21, 2021
c8949c1
Merge pull request #70 from drakaru/alt
jertel Mar 22, 2021
24c6c98
Add alert handler to create Datadog Events
Apr 2, 2021
457501e
Kibana Discover support kibana 7.12
nsano-rururu Apr 4, 2021
ca26362
Merge pull request #72 from nsano-rururu/kibana-discover712
jertel Apr 4, 2021
ab39768
apscheduler>=3.3.0_to_>=3.3.0,<4.0
nsano-rururu Apr 12, 2021
e7f9d4e
Merge pull request #73 from nsano-rururu/apscheduler_version_setting
jertel Apr 13, 2021
45237cc
Update sphinx and elasticsearch-py
nsano-rururu Apr 13, 2021
a25a392
Merge pull request #74 from nsano-rururu/elasticsearch_py_version_up
jertel Apr 13, 2021
955f757
added optional Prometheus metrics endpoint
Apr 16, 2021
606f89e
fix build issues
Apr 19, 2021
7c2ddbe
Merge pull request #75 from nicholasgibson2/add_prometheus_metrics_je…
jertel Apr 19, 2021
63a7cc4
fix compound query key in metric aggregation
just1900 Mar 31, 2021
3d0a285
Unit Test added for metric_aggregation with complex query key and buc…
just1900 Apr 22, 2021
7b99e21
Merge pull request #71 from just1900/alt
jertel Apr 22, 2021
7127d01
Merge remote-tracking branch 'jertel/alt' into add-datadog-alerter
Apr 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/alt_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is a basic workflow to help you get started with Actions

name: alt_build_test

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ alt ]
pull_request:
branches: [ alt ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Build and run tests
run: make test-docker
6 changes: 4 additions & 2 deletions Dockerfile-test
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM ubuntu:latest

RUN apt-get update && apt-get upgrade -y
RUN apt-get -y install build-essential python3.6 python3.6-dev python3-pip libssl-dev git
RUN apt update && apt upgrade -y
RUN apt install software-properties-common -y
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt -y install build-essential python3.9 python3.9-dev python3-pip libssl-dev git

WORKDIR /home/elastalert

Expand Down
372 changes: 372 additions & 0 deletions README-old.md

Large diffs are not rendered by default.

335 changes: 28 additions & 307 deletions README.md

Large diffs are not rendered by default.

61 changes: 30 additions & 31 deletions config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ es_port: 9200

# Use SSL authentication with client certificates client_cert must be
# a pem file containing both cert and key for client
#verify_certs: True
#ca_certs: /path/to/cacert.pem
#client_cert: /path/to/client_cert.pem
#client_key: /path/to/client_key.key
Expand Down Expand Up @@ -78,38 +77,38 @@ alert_time_limit:
# logline:
# format: '%(asctime)s %(levelname)+8s %(name)+20s %(message)s'
#
# handlers:
# console:
# class: logging.StreamHandler
# formatter: logline
# level: DEBUG
# stream: ext://sys.stderr
# handlers:
# console:
# class: logging.StreamHandler
# formatter: logline
# level: DEBUG
# stream: ext://sys.stderr
#
# file:
# class : logging.FileHandler
# formatter: logline
# level: DEBUG
# filename: elastalert.log
# file:
# class : logging.FileHandler
# formatter: logline
# level: DEBUG
# filename: elastalert.log
#
# loggers:
# elastalert:
# level: WARN
# handlers: []
# propagate: true
# loggers:
# elastalert:
# level: WARN
# handlers: []
# propagate: true
#
# elasticsearch:
# level: WARN
# handlers: []
# propagate: true
# elasticsearch:
# level: WARN
# handlers: []
# propagate: true
#
# elasticsearch.trace:
# level: WARN
# handlers: []
# propagate: true
# elasticsearch.trace:
# level: WARN
# handlers: []
# propagate: true
#
# '': # root logger
# level: WARN
# handlers:
# - console
# - file
# propagate: false
# '': # root logger
# level: WARN
# handlers:
# - console
# - file
# propagate: false
12 changes: 12 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Documentation

You can read this documentation at [Read The Docs][0].

To build a local version of these docs, the following from within the `/docs` directory:

```
pip install m2r2 sphinx_rtd_theme sphinx
make html
```

You can then view the generated HTML in from within the `build/` folder.
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
# -- General configuration -----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = []
extensions = ["m2r2"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'
source_suffix = ['.rst', '.md']

# The encoding of source files.
# source_encoding = 'utf-8'
Expand Down Expand Up @@ -62,6 +62,7 @@
# List of directories, relative to source directory, that shouldn't be searched
# for source files.
exclude_trees = []
exclude_patterns = ['recipes/*.md']

# The reST default role (used for this markup: `text`) to use for all documents.
# default_role = None
Expand Down
23 changes: 21 additions & 2 deletions docs/source/elastalert.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,29 @@ Currently, we have support built in for these alert types:
- Email
- JIRA
- OpsGenie
- SNS
- HipChat
- AWS SNS
- MS Teams
- Slack
- Mattermost
- Telegram
- GoogleChat
- PagerDuty
- PagerTree
- Exotel
- Twilio
- Splunk On-Call (Formerly VictorOps)
- Gitter
- ServiceNow
- Debug
- Stomp
- Alerta
- HTTP POST
- Line Notify
- TheHive
- Zabbix
- Discord
- Dingtalk
- Chatwork

Additional rule types and alerts can be easily imported or written. (See :ref:`Writing rule types <writingrules>` and :ref:`Writing alerts <writingalerts>`)

Expand Down Expand Up @@ -203,6 +218,10 @@ The default value is ``.raw`` for Elasticsearch 2 and ``.keyword`` for Elasticse

``skip_invalid``: If ``True``, skip invalid files instead of exiting.

``jinja_root_name``: When using a Jinja template, specify the name of the root field name in the template. The default is ``_data``.

``jinja_template_path``: When using a Jinja template, specify filesystem path to template, this overrides the default behaviour of using alert_text as the template.

Logging
-------

Expand Down
35 changes: 35 additions & 0 deletions docs/source/elasticsearch_security_privileges.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Elasticsearch Security Privileges
*********************************

While ElastAlert will just work out-of-the-box for unsecured Elasticsearch, it will need a user with a certain set of permissions to work on secure Elasticseach that allow it to read the documents, check the cluster status etc.

SearchGuard Permissions
=======================

The permissions in Elasticsearch are specific to the plugin being used for RBAC. However, the permissions mentioned here can be mapped easily to different plugins other than Searchguard.

Details about SearchGuard Action Groups: https://docs.search-guard.com/latest/action-groups


Writeback Permissions
---------------------------

For the global config (which writes to the writeback index), you would need to give all permissions on the writeback indices.
In addition, some permissions related to Cluster Monitor Access are required.

``Cluster Permissions``: CLUSTER_MONITOR, indices:data/read/scroll*

``Index Permissions`` (Over Writeback Indices): INDICES_ALL


Per Rule Permissions
--------------------------

For per rule Elasticsearch config, you would need at least the read permissions on the index you want to query.
Detailed SearchGuard Permissions:

``Cluster Permissions``: CLUSTER_COMPOSITE_OPS_RO

``Index Permissions`` (Over the index the rule is querying on): READ, indices:data/read/scroll*


2 changes: 2 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ Contents:
running_elastalert
ruletypes
elastalert_status
elasticsearch_security_privileges
recipes/adding_rules
recipes/adding_alerts
recipes/writing_filters
recipes/adding_enhancements
recipes/adding_loaders
recipes/signing_requests
recipes/faq

Indices and Tables
==================
Expand Down
Loading