domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
994 stars 213 forks source link

Add support for OpenSearch #480

Closed Szasza closed 7 months ago

Szasza commented 7 months ago

It seems like an OpenSearch integration would be possible as the necessary prerequisite, opensearch-py is available: https://github.com/opensearch-project/opensearch-py

opensearch-py is the replacement for opensearch-dsl and should contain opensearch-dsl's features.

Note: the OpenSearch integration (tested with Parsedmarc v8.7.0 and OpenSearch v2.11.1) technically works with the ElasticSearch settings, whereas the config

[elasticsearch]
hosts = https://USERNAME:PASSWORD@DOMAIN:9200
ssl = True

will connect to OpenSearch and populate the indices. But as time passes, there is a higher and higher risk of the API diverging from Elasticsearch's.

I am happy to work on the implementation.