317a107988
The default index isn't created automatically when using ELK > 5.x. This commit adds a new task into the post-deploy taskset to force the creation of the default index. This patch also enforces the kibana config to set index as defaultIndex without the need for the defaultIndex property to already exists , preventing the error exposed on the public bug. Also added a new option named kibana_default_index_options, with a default index.mapper.dynamic set to true, this option can be extended by the operator and they will be applied to the index. Change-Id: Ica63a5fb30947f7ebae6cf8c80500a7dd0907211 Closes-Bug: #1772687 Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org>
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
---
|
|
project_name: "Kibana"
|
|
|
|
kibana_services:
|
|
kibana:
|
|
container_name: "kibana"
|
|
image: "{{ kibana_image_full }}"
|
|
enabled: true
|
|
group: "kibana"
|
|
volumes:
|
|
- "{{ node_config_directory }}/kibana/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
|
|
####################
|
|
# Kibana
|
|
####################
|
|
kibana_default_app_id: "discover"
|
|
kibana_elasticsearch_request_timeout: 300000
|
|
kibana_elasticsearch_shard_timeout: 0
|
|
kibana_elasticsearch_ssl_verify: false
|
|
|
|
|
|
####################
|
|
# Default index
|
|
####################
|
|
kibana_default_index_pattern: "{{ kibana_log_prefix }}-*"
|
|
kibana_default_index:
|
|
title: "{{ kibana_default_index_pattern }}"
|
|
timeFieldName: "@timestamp"
|
|
kibana_default_index_options:
|
|
index.mapper.dynamic: true
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
kibana_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-kibana"
|
|
kibana_tag: "{{ openstack_release }}"
|
|
kibana_image_full: "{{ kibana_image }}:{{ kibana_tag }}"
|