Skip to content
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

Force obseravable artifacts to be strings in TheHive #313

Merged
merged 3 commits into from
Jun 30, 2021

Conversation

pandvan
Copy link

@pandvan pandvan commented Jun 30, 2021

It follows #254 discussion about TheHive alerter.
Without casting, if matched field is an integer as ES schema, TheHive APIs throw an error as they expect strings as data values.

ferozsalam
ferozsalam previously approved these changes Jun 30, 2021
Copy link
Owner

@jertel jertel left a 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. A unit test to validate that the change is working, and doesn't get reverted by a future commit, would be a good addition. Review this PR if you'd like to see how the other fix tested this: https://github.com/jertel/elastalert2/pull/206/files

@pandvan
Copy link
Author

pandvan commented Jun 30, 2021

Review this PR if you'd like to see how the other fix tested this: https://github.com/jertel/elastalert2/pull/206/files

Hi @jertel. I've tried to follow what were done with that PR.
Hope the change in unit test is enough to validate the request.

@jertel jertel merged commit 29a219f into jertel:master Jun 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants