Change index to detections.alerts

This commit is contained in:
weslambert
2024-05-13 12:59:17 -04:00
committed by GitHub
parent 927fe91f25
commit 26b5a39912

View File

@@ -56,7 +56,7 @@ class SecurityOnionESAlerter(Alerter):
"event_data": match,
"@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)
def get_info(self):