You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal here is to provide a function to search for alerts. This function should accept the following options: query, range and sort like the find_cases function
The text was updated successfully, but these errors were encountered:
importjsonfromthehive4py.apiimportTheHiveApi# Instanciate an API clientapi=TheHiveApi('http://127.0.0.1:9000', 'username', 'password', {})
# Build the query that returns the Alerts with medium severity of type "siem"query= {
"_and": [
{"type": "siem"},
{"severity": 2}
]
}
# Call the alert find functionsiem_alerts=api.find_alerts(query=query)
# Display the responseprint(json.dumps(siem_alerts.json(), indent=4))
But i get empty response list.
If i remove 'between' from query it works but i need the alerts between two dates.
PS:In this way is working perfectly to find the cases
Request Type
Feature Request
Problem Description
The goal here is to provide a function to search for alerts. This function should accept the following options:
query
,range
andsort
like the find_cases functionThe text was updated successfully, but these errors were encountered: