-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spike - OpenSearch reporting and notifications assessment #194
Comments
I was reading the documentation of both plugins and looking for information if they have something to integrate both plugins. opensearch-project/reporting#72 On the other hand I saw that you have https://opensearch.org/docs/latest/reporting/rep-cli-create/ And create a development image with the plugins and upload it to quay, to see the capabilities that both plugins provide. |
A new branch is created with a new plugin to test and see what can be used of the notification and reporting plugins. |
Update 2024-06-27Research about Notifications pluginTo understand the |
Update 2024-06-28
|
Update 2024-06-28
|
Update 2024-07-02Analysing the creation of a plugin using the stuff from the reporting plugin to create a new plugin with stuff from the reporting plugin and notification plugin |
Update 2024-07-02
|
Update 2024-07-03
|
Update 2024-07-05
|
The notification plugin api, can be used in the new reporting plugin https://opensearch.org/docs/latest/observing-your-data/notifications/api/ |
Update 2024-07-11
|
Apparently the dashboard PDF report generation from what I've seen is generated by the "visualReportId" parameter in the url, which is the ID of the report definition created in the report plugin. So the PDF is only created when the dashboard or notebook is opened in the browser with that parameter. |
Update 2024-07-11Although there is no explicit dependency of the Reporting plugin on the Notifications plugin, there is an implicit dependency at the code level, so that if the Notifications plugin is installed, the functionality to configure Notifications for the report is displayed. Code that checks the Notifications plugin - ( Component that is hidden or not according to the previous check The Delivery component uses the backend services of the reporting plugin server ( |
Update 2024-07-12
|
Update 2024-07-12Research and testing are being conducted to modify the content of the test email and to attach a file, which in the future will be the report. Although this has not yet been achieved, the specific location where the report content is generated has been identified ( |
Update 2024-07-15Research continues to be able to edit the content of the Reporting plugin test message through the Notifications plugin. For them, tracking is done from Notifications plugin path involved
|
Update 2024/08/1I have been getting back on topic and configuring the test environments. |
Update 2024/08/02Researching and testing the sending of mails. I saw that the configuration of the conditions of the mail sending is saving it in /_plugins/_im/lron as this documentation says, but I still can't find how to send the mail, I left a query in the opensearch slack channel asking if there is any documentation on how to implement the notification plugin. https://opensearch.org/docs/latest/im-plugin/notifications-settings/ https://opensearch.slack.com/archives/C051D137M7G/p1722613562833819 |
Update 2024/08/05It was found that the mail sending is done from the indexer plugin, so it is possible that may need to make changes in the indexer as well. |
Update 2024/08/13Investigating a little the scheduled reports that are also made on the side of the indexer, perhaps what can be done at the time that the definition of the report is generated in the indexer since the id is obtained and is part of what is needed to generate the report, it would be necessary to analyze if the other data are also there to be able to build the url URL:
Indexer log
|
|
Example using Reporting CLIWe could also use our own scheduling system that would internally use the reporting CLI.
Docs:
Email HTML template: |
Environment for modification of the reporting plugin in indexer
https://github.com/opensearch-project/reporting
2.2. copy the generated zip (in the build located in the
|
Researching and testing the reporting plugin on the indexer side, we were able to modify the plugin to send an email with the notification plugin when the report schedule is generated, testing what could be sent in the email we saw that you can send the email with plain text or HTML. try sending an email with the report definition link: try to send an email with the html format Welcome to Wazuh DashboardThis is an HTML email! Patch: |
Send report by emailBranch wazuh-dashboard-plugins: enhancement/194-spike-reporting-and-notification-plugins Pre-condition
Steps
In the description you can use HTML or plain text.
You can receive the link to the definition of the created report by adding the text {{urlDefinition}} or the hits with the text {{hits}}. The hits are taken from a request to the index from the indexer. Report definition Report Dashboard Discover Notebooks |
Description
We want to identify which of the following functional requirements can be achieved using the OpenSearch Reporting and Notifications plugins. This will allow us to determine the features that will have to be developed in the wazuh-dashboard-plugins repository and how to use the existing features of the mentioned plugins.
Functional Requirements
Implementation Restrictions
Plan
Objective
Branch
The text was updated successfully, but these errors were encountered: