wazuh / wazuh

Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
https://wazuh.com/
Other
10.88k stars 1.65k forks source link

Create helpers to interact with the OpenSearch API #25289

Open GGP1 opened 2 months ago

GGP1 commented 2 months ago

Description

During the development of the Comms API, I've noticed that communicating with the indexer required manipulating requests and responses manually, making the code more complicated to read an maintain.

This issue aims to create an internal library that offers a high-level API to interact with the OpenSearch API.

The utilities should be in charge of:

[!Note] opensearchpy has a helpers library that may be useful for this development.

nico-stefani commented 1 month ago

An example that could help here -> https://github.com/opensearch-project/opensearch-py/blob/main/guides/dsl.md