Pete Scopes
Pete Scopes
You can use my code directly if this doesn't get a merged (doesn't look likely) by add a my repo as a VCS repository to your composer file, i.e.: ```JSON...
One really simple solution to this would be to, now that `validationMustBeExcecuted` exists in `v1.4.x` would be to make it a `protected` function rather than `private` so we could extend...
Another simple way to solve this is to add a middleware layer that checks a whitelist of supported content types, e.g.: ```php // Limit requests to application/json $app->add(function (Request $request,...
> For normal POSTed form data, the Content-Type should be: application/x-www-form-urlencoded or multipart/form-data. To follow on from this `GET` requests are unlikely not to send a Content-Type header so the...
I have a slightly different solution to this problem, which is for the CLI only. You need to include a `--pre-run` option pointing a file containing: ```python import click import...
Firstly, this could be converted into a script that scrapes`elastalert_alert`, `elastalert_status`, etc rather than needing to be integrated directly into ElastAlert. Secondly, you should probably create a wrapper class and...
I personally think this alerter should be more like the HTTPPortAlerter sending but sending all the matches at once: ```python def __init__(self, rule): # ... self.rabbitmq_payload = self.rule.get('rabbitmq_payload', {}) self.rabbitmq_static_payload...
Great, I guess the two things I was hoping for was: 1) ability to customise the data in each match (additional static fields and/or only including a subset of fields...
I didn't know about that functionality. Thanks for the heads up. Another useful setting would be whether the RabbitMQ message needs to be acknowledged (`delivery_mode = 2`).