When using a custom prefix, the Elasticsearch Forwarder for events and situation-feedback creates a wrong template.

Description

A customer heavily relies on index prefixes for all the integrations with Elasticsearch because their cluster is shared across multiple different OpenNMS environments.

When this is the case, the template matching is incorrect, leading to something like this:

All the Elasticsearch features in OpenNMS were configured with this:

This confuses the system, and the actual indexes could end up with the wrong template.

The following is the only evidence found in the customer environment proving that the events forwarder is not working:

The karaf.log* files are full of messages like this, as the environment in question processes on average over 300 events per second.

From the initial list, only the alarms are properly defined. Although, depending on race conditions, the alarms template could end up with the events template and vice-versa, meaning all of them must be fixed.

Here is what I would expect to see on a healthy system using a prefix:

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Chandra Gorantla December 11, 2020 at 9:17 PM

Merged in foundation-2020 with 2099a51ae2e0d5ff3ec47d28d36edb6e550dd8e3

Chandra Gorantla November 30, 2020 at 8:51 PM

This is clone of  NMS-13017  to track backporting original fix to Meridian-2020.

Fixed

Details

Assignee

Reporter

HB Backlog Status

Components

Fix versions

Priority

PagerDuty

Created November 30, 2020 at 8:47 PM
Updated December 11, 2020 at 9:17 PM
Resolved December 11, 2020 at 9:17 PM