mirror of
https://github.com/socfortress/Wazuh-Rules.git
synced 2025-11-05 06:13:18 +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
|
#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")
|
filterTime = filterTime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
|
||||||
## Get Alerts #########################################################
|
## Get Alerts #########################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user