Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12111

Event and alarm templates fail with Elasticsearch 7.X

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 24.1.0
    • None
    • None
    • Security Level: Default (Default Security Scheme)
    • centos 7

    Description

      There seems to be an issue when enabling elasticsearch output for alarms and events.

      ==> /var/log/opennms/karaf.log <==
      2019-06-13T15:35:53,466 | ERROR | AggregatorFlush-org.opennms.plugins.elasticsearch.rest.EventForwarderQueueImpl$EventIndexProducer | DefaultTemplateInitializer | 240 - org.opennms.features.jest.client - 24.1.0 | An error occurred while initializing template eventsindextemplate: Template 'eventsindextemplate' could not be persisted. Reason: {"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [default : {dynamic_templates=[{parameter_fields={unmatch=p_stickymemo, mapping={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}, match_mapping_type=string, match=p_*}}, {asset_fields={mapping={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, match_mapping_type=string, match=asset-*}}, {base_fields={unmatch=[asset-*, p_*], mapping={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}, match_mapping_type=string, match=*}}], properties={logmsgdest={index=true, type=keyword}, suppresseduntil={index=true, type=date}, nodesysname={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, p_oldalarmvalues={properties={suppressedtime=

      {index=true, type=date}, systemid={index=true, type=keyword}, suppresseduntil={index=true, type=date}, description={index=true, type=text}, mouseovertext={index=false, type=text}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, alarmacktime={index=true, type=date}, qosalarmstate={index=true, type=text}, alarmackuser={index=true, type=keyword}, ipaddr={index=true, type=ip}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, severity={index=true, type=byte}, ifindex={index=true, type=keyword}, alarmtype={index=true, type=short}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, firstautomationtime={index=true, type=date}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, counter={index=true, type=long}, eventuei={index=true, type=keyword}, applicationdn={index=true, type=keyword}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, stickymemo={properties={p_reductionkey={index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, reductionkey={index=false, type=text}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}, lastautomationtime={index=true, type=date}, eventparms={index=true, type=text}}}, eventsource={index=true, type=keyword}, alarmreductionkey={index=true, type=keyword}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, id={index=true, type=text}, qosalarmstate={index=true, type=text}, ipaddr={index=true, type=keyword}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, ifindex={index=true, type=keyword}, p_reductionkey={index=false, type=text}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, firstautomationtime={index=true, type=date}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, p_alarmacktime={index=true, type=date}, p_alarmackuser={index=true, type=keyword}, p_systemid={index=true, type=keyword}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, p_suppresseduntil={index=true, type=date}, reductionkey={index=false, type=text}, lastautomationtime={index=true, type=date}, p_serviceid={index=false, type=text}, eventparms={index=true, type=text}, p_stickymemo={properties={p_reductionkey={index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, nodelabel={index=true, type=keyword, fields={raw={index=true, type=text}}}, p_alarmseverity={index=false, type=byte}, eventseverity_text={index=true, type=keyword}, suppressedtime={index=true, type=date}, systemid={index=true, type=keyword}, dom={index=true, type=long}, severity_text={index=true, type=keyword}, p_tticketid={index=true, type=keyword}, operatingsystem={index=true, type=keyword, fields={raw={index=true, type=text}}}, p_alarmid={index=true, type=long}, description={index=true, type=text}, p_reason={index=true, type=text}, p_alarmtype={index=true, type=short}, eventdescr={index=true, type=text}, interface={index=true, type=ip}, dow={index=true, type=long}, mouseovertext={index=false, type=text}, p_tticketstate={index=true, type=byte}, p_alarmcleartime={index=true, type=date}, p_newalarmvalues={properties={suppressedtime={index=true, type=date}

      , systemid={index=true, type=keyword}, suppresseduntil={index=true, type=date}, description={index=true, type=text}, mouseovertext={index=false, type=text}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, alarmacktime={index=true, type=date}, qosalarmstate={index=true, type=text}, alarmackuser={index=true, type=keyword}, ipaddr={index=true, type=ip}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, severity={index=true, type=byte}, ifindex={index=true, type=keyword}, alarmtype={index=true, type=short}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, firstautomationtime={index=true, type=date}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, counter={index=true, type=long}, eventuei={index=true, type=keyword}, applicationdn={index=true, type=keyword}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, stickymemo={properties={p_reductionkey=

      {index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, reductionkey={index=false, type=text}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}, lastautomationtime={index=true, type=date}, eventparms={index=true, type=text}}}, foreignid={index=true, type=keyword}, eventcreationtime={index=true, type=date}, hour={index=true, type=long}, p_oids={type=nested}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, alarmacktime={index=true, type=date}, categories={index=true, type=text}, foreignsource={index=true, type=keyword}, alarmackuser={index=true, type=keyword}, severity={index=true, type=byte}, alarmcleartime={index=true, type=date}, alarmtype={index=true, type=short}, alarmackduration={index=true, type=long}, p_logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, p_oldseverity={index=true, type=byte}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, eventseverity={index=true, type=byte}, eventuei={index=true, type=keyword}, counter={index=true, type=long}, applicationdn={index=true, type=keyword}, p_suppresseduser={index=true, type=keyword}, p_suppressedtime={index=true, type=date}, alarmclearduration={index=true, type=long}, alarmclearkey={index=true, type=keyword}, p_eventuei={index=true, type=keyword}, stickymemo={properties={p_reductionkey={index=false, type=text}

      , p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}}}, nodesyslocation={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}}, all={enabled=false}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [_default : {dynamic_templates=[{parameter_fields={unmatch=p_stickymemo, mapping={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}, match_mapping_type=string, match=p_*}}, {asset_fields={mapping={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, match_mapping_type=string, match=asset-*}}, {base_fields={unmatch=[asset-*, p_*], mapping={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}, match_mapping_type=string, match=*}}], properties={logmsgdest={index=true, type=keyword}, suppresseduntil={index=true, type=date}, nodesysname={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, p_oldalarmvalues={properties={suppressedtime=

      {index=true, type=date}, systemid={index=true, type=keyword}, suppresseduntil={index=true, type=date}, description={index=true, type=text}, mouseovertext={index=false, type=text}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, alarmacktime={index=true, type=date}, qosalarmstate={index=true, type=text}, alarmackuser={index=true, type=keyword}, ipaddr={index=true, type=ip}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, severity={index=true, type=byte}, ifindex={index=true, type=keyword}, alarmtype={index=true, type=short}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, firstautomationtime={index=true, type=date}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, counter={index=true, type=long}, eventuei={index=true, type=keyword}, applicationdn={index=true, type=keyword}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, stickymemo={properties={p_reductionkey={index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, reductionkey={index=false, type=text}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}, lastautomationtime={index=true, type=date}, eventparms={index=true, type=text}}}, eventsource={index=true, type=keyword}, alarmreductionkey={index=true, type=keyword}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, id={index=true, type=text}, qosalarmstate={index=true, type=text}, ipaddr={index=true, type=keyword}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, ifindex={index=true, type=keyword}, p_reductionkey={index=false, type=text}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, firstautomationtime={index=true, type=date}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, p_alarmacktime={index=true, type=date}, p_alarmackuser={index=true, type=keyword}, p_systemid={index=true, type=keyword}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, p_suppresseduntil={index=true, type=date}, reductionkey={index=false, type=text}, lastautomationtime={index=true, type=date}, p_serviceid={index=false, type=text}, eventparms={index=true, type=text}, p_stickymemo={properties={p_reductionkey={index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, nodelabel={index=true, type=keyword, fields={raw={index=true, type=text}}}, p_alarmseverity={index=false, type=byte}, eventseverity_text={index=true, type=keyword}, suppressedtime={index=true, type=date}, systemid={index=true, type=keyword}, dom={index=true, type=long}, severity_text={index=true, type=keyword}, p_tticketid={index=true, type=keyword}, operatingsystem={index=true, type=keyword, fields={raw={index=true, type=text}}}, p_alarmid={index=true, type=long}, description={index=true, type=text}, p_reason={index=true, type=text}, p_alarmtype={index=true, type=short}, eventdescr={index=true, type=text}, interface={index=true, type=ip}, dow={index=true, type=long}, mouseovertext={index=false, type=text}, p_tticketstate={index=true, type=byte}, p_alarmcleartime={index=true, type=date}, p_newalarmvalues={properties={suppressedtime={index=true, type=date}

      , systemid={index=true, type=keyword}, suppresseduntil={index=true, type=date}, description={index=true, type=text}, mouseovertext={index=false, type=text}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, alarmacktime={index=true, type=date}, qosalarmstate={index=true, type=text}, alarmackuser={index=true, type=keyword}, ipaddr={index=true, type=ip}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, severity={index=true, type=byte}, ifindex={index=true, type=keyword}, alarmtype={index=true, type=short}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, firstautomationtime={index=true, type=date}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, counter={index=true, type=long}, eventuei={index=true, type=keyword}, applicationdn={index=true, type=keyword}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, stickymemo={properties={p_reductionkey=

      {index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, reductionkey={index=false, type=text}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}, lastautomationtime={index=true, type=date}, eventparms={index=true, type=text}}}, foreignid={index=true, type=keyword}, eventcreationtime={index=true, type=date}, hour={index=true, type=long}, p_oids={type=nested}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, alarmacktime={index=true, type=date}, categories={index=true, type=text}, foreignsource={index=true, type=keyword}, alarmackuser={index=true, type=keyword}, severity={index=true, type=byte}, alarmcleartime={index=true, type=date}, alarmtype={index=true, type=short}, alarmackduration={index=true, type=long}, p_logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, p_oldseverity={index=true, type=byte}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, eventseverity={index=true, type=byte}, eventuei={index=true, type=keyword}, counter={index=true, type=long}, applicationdn={index=true, type=keyword}, p_suppresseduser={index=true, type=keyword}, p_suppressedtime={index=true, type=date}, alarmclearduration={index=true, type=long}, alarmclearkey={index=true, type=keyword}, p_eventuei={index=true, type=keyword}, stickymemo={properties={p_reductionkey={index=false, type=text}

      , p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}}}, nodesyslocation={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}}, all={enabled=false}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [_default : {dynamic_templates=[{parameter_fields={unmatch=p_stickymemo, mapping={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}, match_mapping_type=string, match=p_*}}, {asset_fields={mapping={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, match_mapping_type=string, match=asset-*}}, {base_fields={unmatch=[asset-*, p_*], mapping={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}, match_mapping_type=string, match=*}}], properties={logmsgdest={index=true, type=keyword}, suppresseduntil={index=true, type=date}, nodesysname={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, p_oldalarmvalues={properties={suppressedtime=

      {index=true, type=date}, systemid={index=true, type=keyword}, suppresseduntil={index=true, type=date}, description={index=true, type=text}, mouseovertext={index=false, type=text}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, alarmacktime={index=true, type=date}, qosalarmstate={index=true, type=text}, alarmackuser={index=true, type=keyword}, ipaddr={index=true, type=ip}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, severity={index=true, type=byte}, ifindex={index=true, type=keyword}, alarmtype={index=true, type=short}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, firstautomationtime={index=true, type=date}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, counter={index=true, type=long}, eventuei={index=true, type=keyword}, applicationdn={index=true, type=keyword}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, stickymemo={properties={p_reductionkey={index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, reductionkey={index=false, type=text}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}, lastautomationtime={index=true, type=date}, eventparms={index=true, type=text}}}, eventsource={index=true, type=keyword}, alarmreductionkey={index=true, type=keyword}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, id={index=true, type=text}, qosalarmstate={index=true, type=text}, ipaddr={index=true, type=keyword}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, ifindex={index=true, type=keyword}, p_reductionkey={index=false, type=text}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, firstautomationtime={index=true, type=date}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, p_alarmacktime={index=true, type=date}, p_alarmackuser={index=true, type=keyword}, p_systemid={index=true, type=keyword}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, p_suppresseduntil={index=true, type=date}, reductionkey={index=false, type=text}, lastautomationtime={index=true, type=date}, p_serviceid={index=false, type=text}, eventparms={index=true, type=text}, p_stickymemo={properties={p_reductionkey={index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, nodelabel={index=true, type=keyword, fields={raw={index=true, type=text}}}, p_alarmseverity={index=false, type=byte}, eventseverity_text={index=true, type=keyword}, suppressedtime={index=true, type=date}, systemid={index=true, type=keyword}, dom={index=true, type=long}, severity_text={index=true, type=keyword}, p_tticketid={index=true, type=keyword}, operatingsystem={index=true, type=keyword, fields={raw={index=true, type=text}}}, p_alarmid={index=true, type=long}, description={index=true, type=text}, p_reason={index=true, type=text}, p_alarmtype={index=true, type=short}, eventdescr={index=true, type=text}, interface={index=true, type=ip}, dow={index=true, type=long}, mouseovertext={index=false, type=text}, p_tticketstate={index=true, type=byte}, p_alarmcleartime={index=true, type=date}, p_newalarmvalues={properties={suppressedtime={index=true, type=date}

      , systemid={index=true, type=keyword}, suppresseduntil={index=true, type=date}, description={index=true, type=text}, mouseovertext={index=false, type=text}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, lasteventtime={index=true, type=date}, managedobjectinstance={index=true, type=text}, alarmacktime={index=true, type=date}, qosalarmstate={index=true, type=text}, alarmackuser={index=true, type=keyword}, ipaddr={index=true, type=ip}, nodeid={index=true, type=long}, firsteventtime={index=true, type=date}, severity={index=true, type=byte}, ifindex={index=true, type=keyword}, alarmtype={index=true, type=short}, x733alarmtype={index=true, type=keyword}, logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, firstautomationtime={index=true, type=date}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, counter={index=true, type=long}, eventuei={index=true, type=keyword}, applicationdn={index=true, type=keyword}, operinstruct={index=false, type=text}, ossprimarykey={index=true, type=keyword}, stickymemo={properties={p_reductionkey=

      {index=false, type=text}, p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw={index=true, type=text}}}}}, tticketstate={index=true, type=byte}, alarmid={index=true, type=long}, reductionkey={index=false, type=text}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}, lastautomationtime={index=true, type=date}, eventparms={index=true, type=text}}}, foreignid={index=true, type=keyword}, eventcreationtime={index=true, type=date}, hour={index=true, type=long}, p_oids={type=nested}, x733probablecause={index=true, type=short}, lasteventid={index=true, type=long}, alarmacktime={index=true, type=date}, categories={index=true, type=text}, foreignsource={index=true, type=keyword}, alarmackuser={index=true, type=keyword}, severity={index=true, type=byte}, alarmcleartime={index=true, type=date}, alarmtype={index=true, type=short}, alarmackduration={index=true, type=long}, p_logmsg={index=true, type=text}, tticketid={index=true, type=keyword}, p_oldseverity={index=true, type=byte}, clearkey={index=true, type=text}, managedobjecttype={index=true, type=text}, eventseverity={index=true, type=byte}, eventuei={index=true, type=keyword}, counter={index=true, type=long}, applicationdn={index=true, type=keyword}, p_suppresseduser={index=true, type=keyword}, p_suppressedtime={index=true, type=date}, alarmclearduration={index=true, type=long}, alarmclearkey={index=true, type=keyword}, p_eventuei={index=true, type=keyword}, stickymemo={properties={p_reductionkey={index=false, type=text}

      , p_body={index=true, type=text}, p_author={index=true, type=keyword, fields={raw=

      {index=true, type=text}}}}}, nodesyslocation={index=true, type=keyword, fields={raw={index=true, type=text}

      }}, serviceid={index=true, type=long}, suppresseduser={index=true, type=keyword}}, _all={enabled=false}}]"}}.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dgagnon Daniel Gagnon (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: