We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4102c8e commit 75954ebCopy full SHA for 75954eb
src/controllers/process/index.js
@@ -58,7 +58,16 @@ export default class ProcessController {
58
logger.warn('ElastAlert will start but might not be able to save its data!');
59
}
60
61
- this._process = spawn('python', ['-m', 'elastalert.elastalert'], {
+ let startArguments = [];
62
+
63
+ if (config.get('start') !== undefined && config.get('start') !== '') {
64
+ logger.info('Setting ElastAlert query beginning to time ' + config.get('start'));
65
+ startArguments.push('--start', config.get('start'));
66
+ }
67
68
+ logger.info('Starting elastalert with arguments ' + (startArguments.join(' ') || '[none]'));
69
70
+ this._process = spawn('python', ['elastalert/elastalert.py'].concat(startArguments), {
71
cwd: this._elastalertPath
72
});
73
0 commit comments