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
+20-35Lines changed: 20 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,50 +57,35 @@ You can then start the build by running `node lib/index.js`.
57
57
## Config
58
58
In `config/config.example.json` you'll find the default config. You can make a `config.json` file in the same folder that overrides the default config. When forking this repository it is recommended to remove `config.json` from the `.gitignore` file. For local testing purposes you can then use a `config.dev.json` file which overrides `config.json`.
59
59
60
+
### ElastAlert parameters
61
+
ElastAlert supports additional arguments, that can be passed in the `config.json` file. An example is given in `config/config-historic-data-example.json`.
62
+
60
63
### Install ElastAlert to /opt/elastalert
61
64
And run `pip install -r requirements.txt` or read the installation guide of ElastAlert.
62
65
63
66
You can use the following config options:
64
67
65
68
```javascript
66
69
{
67
-
// The name of the app / server, used by the logging framework.
68
-
"appName": "elastalert-server",
69
-
70
-
// The port to bind to
71
-
"port": 3030,
72
-
73
-
// The path to the root ElastAlert folder. It's the folder that contains the `setup.py` script and the `config.yaml.example` file.
74
-
"elastalertPath": "/opt/elastalert",
75
-
76
-
// The path to the rules folder containing all the rules. If the folder is empty a dummy file will be created to allow ElastAlert to start.
77
-
"rulesPath": {
78
-
79
-
// Whether to use a path relative to the `elastalertPath` folder.
80
-
"relative": true,
81
-
82
-
// The path to the rules folder.
83
-
"path": "/rules"
70
+
"appName": "elastalert-server", // The name used by the logging framework.
71
+
"port": 3030, // The port to bind to
72
+
"elastalertPath": "/opt/elastalert", // The path to the root ElastAlert folder. It's the folder that contains the `setup.py` script.
73
+
"start": "2014-01-01T00:00:00", // Optional date to start querying from
74
+
"end": "2016-01-01T00:00:00", // Optional date to stop querying at
75
+
"verbose": true, // Optional, will increase the logging verboseness, which allows you to see information about the state of queries.
76
+
"es_debug": true, // Optional, will enable logging for all queries made to Elasticsearch
77
+
"debug": false, // Will run ElastAlert in debug mode. This will increase the logging verboseness, change all alerts to DebugAlerter, which prints alerts and suppresses their normal action, and skips writing search and alert metadata back to Elasticsearch.
78
+
"rulesPath": { // The path to the rules folder containing all the rules. If the folder is empty a dummy file will be created to allow ElastAlert to start.
79
+
"relative": true, // Whether to use a path relative to the `elastalertPath` folder.
80
+
"path": "/rules" // The path to the rules folder.
84
81
},
85
-
86
-
// The path to the rules folder containing all the rules. If the folder is empty a dummy file will be created to allow ElastAlert to start.
87
-
"templatesPath": {
88
-
89
-
// Whether to use a path relative to the `elastalertPath` folder.
90
-
"relative": true,
91
-
92
-
// The path to the rules folder.
93
-
"path": "/rule_templates"
82
+
"templatesPath": { // The path to the rules folder containing all the rule templates. If the folder is empty a dummy file will be created to allow ElastAlert to start.
83
+
"relative": true, // Whether to use a path relative to the `elastalertPath` folder.
84
+
"path": "/rule_templates" // The path to the rule templates folder.
94
85
},
95
-
96
-
// The path to a folder that the server can use to store data and temporary files.
97
-
"dataPath": {
98
-
99
-
// Whether to use a path relative to the `elastalertPath` folder.
100
-
"relative": true,
101
-
102
-
// The path to the data folder.
103
-
"path": "/server_data"
86
+
"dataPath": { // The path to a folder that the server can use to store data and temporary files.
87
+
"relative": true, // Whether to use a path relative to the `elastalertPath` folder.
88
+
"path": "/server_data" // The path to the data folder.
0 commit comments