You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The most convenient way to run the ElastAlert server is by using our Docker cont
14
14
To run the Docker image you will want to mount the volumes for configuration and rule files to keep them after container updates. In order to do that conveniently, please do: `git clone https://github.com/bitsensor/elastalert.git; cd elastalert`
@@ -61,6 +61,7 @@ You can use the following config options:
61
61
{
62
62
"appName":"elastalert-server", // The name used by the logging framework.
63
63
"port":3030, // The port to bind to
64
+
"wsport":3333, // The port to bind to for websockets
64
65
"elastalertPath":"/opt/elastalert", // The path to the root ElastAlert folder. It's the folder that contains the `setup.py` script.
65
66
"start":"2014-01-01T00:00:00", // Optional date to start querying from
66
67
"end":"2016-01-01T00:00:00", // Optional date to stop querying at
@@ -211,7 +212,11 @@ This server exposes the following REST API's:
211
212
}
212
213
}
213
214
```
215
+
216
+
- **WEBSOCKET `/test`**
214
217
218
+
This allows you to test a rule and receive progress over a websocket. Send a message as JSON object (stringified) with two keys: `rule`(yaml string) and `options` (JSON object). You will receive progress messages over the socket as the test runs.
219
+
215
220
- **GET `/metadata/:type`**
216
221
217
222
Returns metadata from elasticsearch related to elasalert's state. `:type` should be one of: elastalert_status, elastalert, elastalert_error, or silence. See [docs about the elastalert metadata index](https://elastalert.readthedocs.io/en/latest/elastalert_status.html).
@@ -220,6 +225,10 @@ This server exposes the following REST API's:
220
225
221
226
Returns field mapping from elasticsearch for a given index.
222
227
228
+
- **GET `/search/:index`**
229
+
230
+
Performs elasticsearch query on behalf of the API. JSON body to this endpoint will become body of an ES search.
231
+
223
232
- **[WIP] GET `/config`**
224
233
225
234
Gets the ElastAlert configuration from `config.yaml` in `elastalertPath` (from the config).
0 commit comments