Remove event index config for kibana index

This commit is contained in:
Brandon Myers 2019-02-19 16:36:24 -06:00
Родитель 21c73704c0
Коммит 0a2b5e2d11
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 8AA79AD83045BBC7
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -71,7 +71,7 @@ slowlog_threshold_query_warn = getConfig('slowlog_threshold_query_warn', '5s', a
slowlog_threshold_fetch_warn = getConfig('slowlog_threshold_fetch_warn', '5s', args.backup_conf_file)
mapping_total_fields_limit = getConfig('mapping_total_fields_limit', '1000', args.backup_conf_file)
index_settings['settings'] = {
index_options = {
"index": {
"refresh_interval": refresh_interval,
"number_of_shards": number_of_shards,
@ -81,6 +81,7 @@ index_settings['settings'] = {
"mapping.total_fields.limit": mapping_total_fields_limit
}
}
index_settings['settings'] = index_options
# Create initial indices
if event_index_name not in all_indices:
@ -104,7 +105,7 @@ if weekly_index_alias not in all_indices:
if kibana_index_name not in all_indices:
print "Creating " + kibana_index_name
client.create_index(kibana_index_name, index_config=index_settings)
client.create_index(kibana_index_name, index_config={"settings": index_options})
# Wait for .kibana index to be ready
num_times = 0