From 20c6740bfc8245a304e8d2a7f630269c31e3918f Mon Sep 17 00:00:00 2001 From: Piotr Milewski Date: Mon, 27 Apr 2026 11:15:19 +0200 Subject: opensearch: automate index pattern creation in dashboards Previously, operators had to manually create the default index pattern after the first login to OpenSearch Dashboards. This commit automates the creation of the default index pattern using the OpenSearch Dashboards Saved Objects API during the post-config phase. The pattern is dynamically named based on the opensearch_log_index_prefix variable (defaulting to "flog-*") and automatically sets "@timestamp" as the time field. Documentation has been updated to reflect that the first-login manual setup is no longer required for the default log indices. Change-Id: I8d49a270ace187b3b13103452e93d305505f6cbb Signed-off-by: Piotr Milewski --- .../automate-opensearch-index-pattern-0b5396fc1cd4de67.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 releasenotes/notes/automate-opensearch-index-pattern-0b5396fc1cd4de67.yaml (limited to 'releasenotes') diff --git a/releasenotes/notes/automate-opensearch-index-pattern-0b5396fc1cd4de67.yaml b/releasenotes/notes/automate-opensearch-index-pattern-0b5396fc1cd4de67.yaml new file mode 100644 index 000000000..514b5458d --- /dev/null +++ b/releasenotes/notes/automate-opensearch-index-pattern-0b5396fc1cd4de67.yaml @@ -0,0 +1,11 @@ +--- +features: + - | + Automated the creation of the default OpenSearch Dashboards + index pattern. During deployment or reconfiguration, Kolla + Ansible now automatically provisions an index pattern based + on the ``opensearch_log_index_prefix`` (defaulting to + ``flog-*``) with ``@timestamp`` configured as the time field. + This removes the need for operators to manually configure the + initial index pattern upon their first login to the Dashboards + UI. -- cgit v1.2.3