-
Notifications
You must be signed in to change notification settings - Fork 297
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
Opensearch discover link support #1310
Conversation
I like the new feature! I can definitely see the value here for OpenSearch users. Instead of referencing The new Python code will also need unit tests coverage before this can be merged in. It's a lot of work to add the coverage but it's very valuable for future developers so they don't break your changes when they add new functionality. Thanks for helping to keep the project growing! |
If you added the settings to slack, please add the settings below as well.
|
Does opensearch have a Shorten URL API like kibana? . If not, I think there is no need to add any related settings. |
Hello @nsano-rururu , I'm currently writing the test code, I'll add the documentation for the variable afterward. It does have a shorten API but for now, I let it aside. For now the code call to kibana external formater url only to finish the url, the base url add happen in this file for kibana and opensearch |
add opensearch discover related test
add opensearch discover url related test
add opensearch related test
add opensearch related test
Add a test file for opensearch_external_url_formatter
Done |
@jertel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! And thanks to @nsano-rururu for the detailed code reviews!
Description
This pull request aim to add the possibility to create opensearch discover url from the elastalert query, the same way it is done for the kibana discover url.
I tried to minimize the change, so I only added one key in the yaml schema ( generate_opensearch_discover_url ).
This feature reuse all the current kibana related variable.
Checklist
make test-docker
with my changes.Questions or Comments
I have tested this in my environment making elastalert run on an Opensearch SIEM in 2.11. The alert triggered with this feature were sent to thehive and slack.
The link in thehive was added to the description of the alert and worked. In slack the "Discover in Kibana" button also worked.
This feature for now was only tested with opensearch 2.11