Skip to content

Commit b3e8925

Browse files
committed
Fixing get config of index used to write back
1 parent 4b6a372 commit b3e8925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/process/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class ProcessController {
3838

3939
// Create ElastAlert index if it doesn't exist yet
4040
logger.info('Creating index');
41-
var indexCreate = spawnSync('python', ['-m', 'elastalert.create_index', '--index', 'elastalert_status', '--old-index', ''], {
41+
var indexCreate = spawnSync('python', ['-m', config.get('writeback_index'), '--index', 'elastalert_status', '--old-index', ''], {
4242
cwd: this._elastalertPath
4343
});
4444

0 commit comments

Comments
 (0)