EventToIndex - Alarm Change Old/New parameters submitted to ES as single string and not JSON objects

Description

In EventToIndex.Java sending into ES with type alarmchange, the p_oldalarmvalues and p_newalarmvalues parameters are submitted as a single escaped string and not a unescaped JSON object containing multiple sub parameters.

See Attachments including updated ES mapping file.

Issue.txt - Direct from packet capture
eventsindextemplate.json - Newer structured mapping

This should link to

Acceptance / Success Criteria

None

Attachments

3

Lucidchart Diagrams

Activity

Show:

Markus von Rüden March 29, 2018 at 1:33 PM

Jesse White March 28, 2018 at 1:56 PM

Fixed in features/drift. Pending backport to release-21.1.0.

Markus von Rüden March 22, 2018 at 2:36 PM

Instead of manually checking for some parameter key names, I opted to support json as parameter value type, allowing a consistent parsing of the value for all future additions.
PR: https://github.com/OpenNMS/opennms/pull/1903

Sean Torres March 19, 2018 at 12:26 PM

Added patch.txt for possible solution, also may address

Fixed

Details

Assignee

Reporter

Labels

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created March 15, 2018 at 7:14 PM
Updated June 3, 2019 at 7:08 AM
Resolved April 16, 2018 at 4:41 PM
Loading...