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
+5-4Lines changed: 5 additions & 4 deletions
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`
@@ -60,6 +60,7 @@ You can use the following config options:
60
60
{
61
61
"appName":"elastalert-server", // The name used by the logging framework.
62
62
"port":3030, // The port to bind to
63
+
"wsport":3333, // The port to bind to for websockets
63
64
"elastalertPath":"/opt/elastalert", // The path to the root ElastAlert folder. It's the folder that contains the `setup.py` script.
64
65
"start":"2014-01-01T00:00:00", // Optional date to start querying from
65
66
"end":"2016-01-01T00:00:00", // Optional date to stop querying at
@@ -208,10 +209,10 @@ This server exposes the following REST API's:
208
209
}
209
210
}
210
211
```
211
-
212
-
- **GET `/test_stream`**
213
212
214
-
This allows you to test a rule and get a [Server Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) event stream back. Pass params `rule` (yaml string) and `options` (JSON string) to start receiving events.
213
+
- **WEBSOCKET `/test`**
214
+
215
+
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.
0 commit comments