mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Change index to detections.alerts
This commit is contained in:
@@ -56,8 +56,8 @@ class SecurityOnionESAlerter(Alerter):
|
|||||||
"event_data": match,
|
"event_data": match,
|
||||||
"@timestamp": timestamp
|
"@timestamp": timestamp
|
||||||
}
|
}
|
||||||
url = f"https://{self.rule['es_host']}:{self.rule['es_port']}/logs-playbook.alerts-so/_doc/"
|
url = f"https://{self.rule['es_host']}:{self.rule['es_port']}/logs-detections.alerts-so/_doc/"
|
||||||
requests.post(url, data=json.dumps(payload), headers=headers, verify=False, auth=creds)
|
requests.post(url, data=json.dumps(payload), headers=headers, verify=False, auth=creds)
|
||||||
|
|
||||||
def get_info(self):
|
def get_info(self):
|
||||||
return {'type': 'SecurityOnionESAlerter'}
|
return {'type': 'SecurityOnionESAlerter'}
|
||||||
|
|||||||
Reference in New Issue
Block a user