-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
http post api #3040
Comments
I looked at this and wrote it here because I failed |
I don't think there is any string substitution happening for post_url which can replace the src_ip. @ozgursuder |
I can post the src_ip part but I have no idea how to split it as post url |
I don't think this is possible with the current HTTPPostAlerter implementation. You can write a small server which translates the post to the suitable URL and makes the requests on elastalert's behalf. So it will look like elastalert -> your_small_translation_server -> actual_destination I was thinking of writing a more feature rich webhook implementation if there's a requirement. |
Frankly, many will want to connect through the firewall api and I think this will be needed. |
Unfortunately, this repo is not being actively maintained. I'll try writing the webhook implementation if i get the time and create a PR in case this project ever becomes active. |
@ozgursuder I have created a PR and added an alerter which should allow you to create the URL as you need It still needs to be reviewed though |
Hello there
I have an api access information as follows.
I can get the src_ip part here from elastalert.
I wonder how can I write the above code to the api using http post
this api code is a code belonging to the firewall
The text was updated successfully, but these errors were encountered: