24.1.3 & Elasticsearch Alarm Archiveelastalarm

Hi,

I’ve installed Opennms 24.1.3 and tried to connect to elasticsearch 7.2.1 or 7.3.0 like described in https://docs.opennms.org/opennms/releases/latest/guide-admin/guide-admin.html#ga-elasticsearch-integration

No data is received in elasticsearch
Elasicsearch log shows:

[2019-10-02T14:30:23,432][DEBUG][o.e.a.a.i.t.p.TransportPutIndexTemplateAction] [sadelastic] failed to put template [alarms]
org.elasticsearch.index.mapper.MapperParsingException: Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: 

An in opennms I’m always getting these errors. Why?

14:29:06.710 INFO [sshd-SshServer[73e4441a]-nio2-thread-1] Session admin@/127.0.0.1:33176 authenticated
14:29:35.570 INFO [pipe-feature:install opennms-alarm-history-rest] Adding features: opennms-alarm-history-rest/[24.1.3,24.1.3]
14:29:41.513 INFO [features-3-thread-1] Changes to perform:
14:29:41.513 INFO [features-3-thread-1]   Region: root
14:29:41.514 INFO [features-3-thread-1]     Bundles to install:
14:29:41.514 INFO [features-3-thread-1]       mvn:org.opennms.features.alarms.history/org.opennms.features.alarms.history.api/24.1.3
14:29:41.514 INFO [features-3-thread-1]       mvn:org.opennms.features.alarms.history.rest/org.opennms.features.alarms.history.rest.api/24.1.3
14:29:41.514 INFO [features-3-thread-1]       mvn:org.opennms.features.alarms.history.rest/org.opennms.features.alarms.history.rest.impl/24.1.3
14:29:41.518 INFO [features-3-thread-1] Installing bundles:
14:29:41.518 INFO [features-3-thread-1]   mvn:org.opennms.features.alarms.history/org.opennms.features.alarms.history.api/24.1.3
14:29:41.535 INFO [features-3-thread-1]   mvn:org.opennms.features.alarms.history.rest/org.opennms.features.alarms.history.rest.api/24.1.3
14:29:41.537 INFO [features-3-thread-1]   mvn:org.opennms.features.alarms.history.rest/org.opennms.features.alarms.history.rest.impl/24.1.3
14:29:41.568 INFO [features-3-thread-1] Starting bundles:
14:29:41.570 INFO [features-3-thread-1]   org.opennms.features.alarms.history.api/24.1.3
14:29:41.571 INFO [features-3-thread-1]   org.opennms.features.alarms.history.rest.api/24.1.3
14:29:41.572 INFO [features-3-thread-1]   org.opennms.features.alarms.history.rest.impl/24.1.3
14:29:41.585 INFO [features-3-thread-1] Blueprint bundle org.opennms.features.alarms.history.rest.impl/24.1.3 is waiting for dependencies [(objectClass=org.opennms.features.alarms.history.api.AlarmHistoryRepository)]
14:29:41.589 INFO [features-3-thread-1] Done.
14:30:03.457 INFO [pipe-feature:install opennms-alarm-history-elastic] Adding features: opennms-alarm-history-elastic/[24.1.3,24.1.3]
14:30:06.292 INFO [features-3-thread-1] Changes to perform:
14:30:06.292 INFO [features-3-thread-1]   Region: root
14:30:06.292 INFO [features-3-thread-1]     Bundles to install:
14:30:06.292 INFO [features-3-thread-1]       mvn:org.opennms.features.alarms.history/org.opennms.features.alarms.history.elastic/24.1.3
14:30:06.293 INFO [features-3-thread-1] Installing bundles:
14:30:06.294 INFO [features-3-thread-1]   mvn:org.opennms.features.alarms.history/org.opennms.features.alarms.history.elastic/24.1.3
14:30:06.314 INFO [features-3-thread-1] Starting bundles:
14:30:06.314 INFO [features-3-thread-1]   org.opennms.features.alarms.history.elastic/24.1.3
14:30:06.380 WARN [features-3-thread-1] setCredentials was invoked, but no credentials or no valid credentials were provided.
14:30:06.394 INFO [features-3-thread-1] Setting server pool to a list of 1 servers: [http://sadelastic.spm.local:9200]
14:30:06.395 INFO [features-3-thread-1] Using multi thread/connection supporting pooling connection manager
14:30:06.404 INFO [features-3-thread-1] Using custom GSON instance
14:30:06.405 INFO [features-3-thread-1] Node Discovery disabled...
14:30:06.405 INFO [features-3-thread-1] Idle connection reaping disabled...
14:30:06.462 INFO [Blueprint Extender: 2] Blueprint bundle org.opennms.features.alarms.history.rest.impl/24.1.3 has been started
14:30:06.465 INFO [features-3-thread-1] Blueprint bundle org.opennms.features.alarms.history.elastic/24.1.3 has been started
14:30:06.466 INFO [features-3-thread-1] Done.
14:30:06.792 ERROR [ElasticAlarmIndexer] An error occurred while initializing template alarms: Template 'alarms' could not be persisted. Reason: {"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}}.
java.lang.IllegalStateException: Template 'alarms' could not be persisted. Reason: {"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}}
        at org.opennms.plugins.elasticsearch.rest.template.DefaultTemplateInitializer.doInitialize(DefaultTemplateInitializer.java:119) ~[241:org.opennms.features.jest.client:24.1.3]
        at org.opennms.plugins.elasticsearch.rest.template.DefaultTemplateInitializer.initialize(DefaultTemplateInitializer.java:81) [241:org.opennms.features.jest.client:24.1.3]
        at org.opennms.features.alarms.history.elastic.ElasticAlarmIndexer.run(ElasticAlarmIndexer.java:201) [351:org.opennms.features.alarms.history.elastic:24.1.3]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
14:30:07.067 ERROR [ElasticAlarmIndexer] An error occurred while initializing template alarms: Template 'alarms' could not be persisted. Reason: {"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}}.
java.lang.IllegalStateException: Template 'alarms' could not be persisted. Reason: {"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, @deleted_time={format=epoch_millis, type=date}, @first_event_time={format=epoch_millis, type=date}, archived_time={format=epoch_millis, type=date}, description={type=text}, managed_object_type={type=keyword}, archived={type=boolean}, @version={type=keyword}, ticket_state_name={type=keyword}, log_message={type=text}, situation={type=boolean}, counter={type=integer}, ip_address={type=ip}, ticket_id={type=keyword}, service_type={type=keyword}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, @update_time={format=epoch_millis, type=date}, attributes={dynamic=true, type=object}, reduction_key={type=keyword}, severity_id={type=integer}, dist_poller={dynamic=true, type=object, properties={location={type=text}, id={type=keyword}, label={type=text}}}, severity_label={type=keyword}}}]"}}
        at org.opennms.plugins.elasticsearch.rest.template.DefaultTemplateInitializer.doInitialize(DefaultTemplateInitializer.java:119) ~[241:org.opennms.features.jest.client:24.1.3]
        at org.opennms.plugins.elasticsearch.rest.template.DefaultTemplateInitializer.initialize(DefaultTemplateInitializer.java:81) [241:org.opennms.features.jest.client:24.1.3]
        at org.opennms.features.alarms.history.elastic.ElasticAlarmIndexer.run(ElasticAlarmIndexer.java:201) [351:org.opennms.features.alarms.history.elastic:24.1.3]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
14:30:07.582 ERROR [ElasticAlarmIndexer] An error occurred while initializing template alarms: Template 'alarms' could not be persisted. Reason: {"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [alarm : {_meta={version=1.0.0}, dynamic_templates=[], properties={related_alarm_ids={type=integer}, suppressed_time={format=epoch_millis, type=date}, related_alarm_count={type=integer}, suppressed_user={type=keyword}, type={type=integer}, operator_instructions={type=text}, x733_alarm_type={type=keyword}, part_of_situation={type=boolean}, ticket_state_id={type=integer}, related_alarm_reduction_keys={type=keyword}, mouse_over_text={type=text}, id={type=integer}, sticky_memo={dynamic=true, type=object, properties={update_time={format=epoch_millis, type=date}, author={type=text}, body={type=text}}}, application_dn={type=keyword}, if_index={type=integer}, first_automation_time={format=epoch_millis, type=date}, ack_time={format=epoch_millis, type=date}, ack_user={type=text}, last_automation_time={format=epoch_millis, type=date}, service_name={type=keyword}, clear_key={type=keyword}, oss_primary_key={type=keyword}, qos_alarm_state={type=keyword}, @last_event_time={format=epoch_millis, type=date}, x733_probable_cause={type=integer}, node={dynamic=true, type=object, properties={foreign_id={type=text}, foreign_source={type=text}, categories={type=text}, id={type=integer}, label={type=text}}}, suppressed_until={format=epoch_millis, type=date}, related_alarms={dynamic=true, type=object, properties={last_event_time={format=epoch_millis, type=date}, first_event_time={format=epoch_millis, type=date}, last_event={dynamic=true, type=object, properties={uei={type=text}, description={type=text}, log_message={type=text}, id={type=integer}}}, managed_object_instance={type=keyword}, id={type=integer}, reduction_key={type=keyword}, severity_id={type=integer}, managed_object_type={type=keyword}, severity_label={type=keyword}}}, journal_memo={dynamic=true, type=object, properties={update_time

and so on

ElasticSearch 7.x is not supported on 24.1.3. It is only supported on 25.0.0.

You should refer to https://docs.opennms.org/opennms/releases/24.1.3/guide-admin/guide-admin.html for 24.1.3 docs and use ElasticSearch 6.x for that release.

Ah thanks for your eyeopener, everything is working now!

What confused me was that in the opennm-24 repository is the elasticsearch drift plugin 7.3.0.