Cannot write to a field alias [agent.hostname]

Hi,

I encounter the following error during installation of packetbeat:

{"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"illegal_argument_exception","reason":"Cannot write to a field alias [agent.hostname]."}

using:
Name : packetbeat
Version : 7.7.0
Release : 1
Architecture: x86_64
Install Date: (not installed)
Group : default
Size : 58606542
License : ASL-2.0
Signature : RSA/SHA512, Tue 12 May 2020 06:52:33 AM CEST, Key ID d27d666cd88e42b4
Source RPM : packetbeat-7.7.0-1.src.rpm
Build Date : Tue 12 May 2020 02:41:55 AM CEST
Build Host : 88766214fc4c
Relocations : /
Packager : <@88766214fc4c>
Vendor : Elastic
URL : Packetbeat: Network Analytics Using Elasticsearch | Elastic
Summary : Packetbeat analyzes network traffic and sends the data to Elasticsearch.
Description :
Packetbeat analyzes network traffic and sends the data to Elasticsearch.

with AWS opensearch OpenSearch_2_3_R20240502-P2

Regards,

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance. See What is OpenSearch and the OpenSearch Dashboard? | Elastic for more details.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

Removed #opensearch