Skip to content

Commit

Permalink
Merge pull request #77 from Yelp/add_until_to_mapping
Browse files Browse the repository at this point in the history
Added until to silence_mapping
  • Loading branch information
Qmando committed Apr 24, 2015
2 parents 166c8e8 + a9c31fa commit 459f4b2
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 459f4b2

Please sign in to comment.