mirror of
https://github.com/socfortress/Wazuh-Rules.git
synced 2025-10-23 08:12:16 +00:00
Update defender_for_endpoint_alerts.py
changed filterTime = datetime.now() - timedelta(hours = 1) to filterTime = datetime.utcnow() - timedelta(hours = 1)
This commit is contained in:
committed by
GitHub
parent
a6a8a496ee
commit
7c89ce5711
@@ -50,7 +50,7 @@ aadToken = jsonResponse["access_token"]
|
||||
|
||||
|
||||
#build get-alerts API
|
||||
filterTime = datetime.now() - timedelta(hours = 1) #If you want to include alerts from longer then an hour, change here (days, weeks)
|
||||
filterTime = datetime.utcnow() - timedelta(hours = 1) #If you want to include alerts from longer then an hour, change here (days, weeks)
|
||||
filterTime = filterTime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
## Get Alerts #########################################################
|
||||
|
Reference in New Issue
Block a user