зеркало из https://github.com/mozilla/MozDef.git
Swapping log lines with index creation task - fixing alignment
This commit is contained in:
Родитель
72bd27d6ba
Коммит
4d81cd7569
|
@ -79,11 +79,11 @@ def esRotateIndexes():
|
|||
"number_of_shards": 1
|
||||
}
|
||||
}
|
||||
es.create_index(newindex, index_config)
|
||||
logger.debug('Creating %s index' % newindex)
|
||||
else:
|
||||
es.create_index(newindex)
|
||||
logger.debug('Creating %s index' % newindex)
|
||||
es.create_index(newindex, index_config)
|
||||
else:
|
||||
logger.debug('Creating %s index' % newindex)
|
||||
es.create_index(newindex)
|
||||
# set aliases: events to events-YYYYMMDD
|
||||
# and events-previous to events-YYYYMMDD-1
|
||||
logger.debug('Setting {0} alias to index: {1}'.format(index, newindex))
|
||||
|
|
Загрузка…
Ссылка в новой задаче