Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
less fancy summary
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkrug committed Jun 23, 2019
1 parent 0feb1b8 commit e48a1ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions alerts/cloudtrail_excessive_describe.py
Expand Up @@ -13,7 +13,7 @@
class AlertCloudtrailExcessiveDescribe(AlertTask):
def main(self):
# Create a query to look back the last 20 minutes
search_query = SearchQuery(minutes=30)
search_query = SearchQuery(minutes=5)

# Add search terms to our query
search_query.add_must([
Expand All @@ -31,7 +31,6 @@ def onAggregation(self, aggreg):
category = 'access'
tags = ['cloudtrail']
severity = 'WARNING'
summary = "Excessive Describe calls on {} ({})".format(aggreg['value'], aggreg['count'])

summary = "A production service is generating excessive describe calls."
# Create the alert object based on these properties
return self.createAlertDict(summary, category, tags, aggreg['events'], severity)

0 comments on commit e48a1ff

Please sign in to comment.