Skip to content

Commit

Permalink
Added until to silence_mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Qmando committed Apr 23, 2015
1 parent 60f4c89 commit a9c31fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ es_port: 14900

# The index on es_host which is used for metadata storage
# This can be a unmapped index, but it is reccommended that you run
# tools/create_index.py to set a mapping
# elastalert-create-index to set a mapping
writeback_index: elastalert_status

# If an alert fails for some reason, ElastAlert will retry
Expand Down
3 changes: 2 additions & 1 deletion elastalert/create_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def main():

es = Elasticsearch(host=host, port=port, use_ssl=use_ssl, http_auth=http_auth)

silence_mapping = {'silence': {'properties': {'rule_name': {'index': 'not_analyzed', 'type': 'string'}}}}
silence_mapping = {'silence': {'properties': {'rule_name': {'index': 'not_analyzed', 'type': 'string'},
'until': {'type': 'date', 'format': 'dateOptionalTime'}}}}
ess_mapping = {'elastalert_status': {'properties': {'rule_name': {'index': 'not_analyzed', 'type': 'string'},
'@timestamp': {'format': 'dateOptionalTime', 'type': 'date'}}}}
es_mapping = {'elastalert': {'properties': {'rule_name': {'index': 'not_analyzed', 'type': 'string'},
Expand Down

0 comments on commit a9c31fa

Please sign in to comment.