ELK-functionbeat-not-able-to-push-data

Hello Team,

We are facing the below error in AWS function beat lambda.

Cannot index event publisher.Event{Content:beat.Event

More error details as below:

Error:
2022-07-22T15:15:01.087Z	WARN	[elasticsearch]	elasticsearch/client.go:408	Cannot index event publisher.Event{Content:beat.Event
{Timestamp:time.Time{wall:0xf424000, ext:6379400000, loc:(*time.Location)(0x45414e0)}, Meta:null, Fields:{"agent":
{"ephemeral_id":"6afb6acd-2196-49cc-bfa6-762b203a5037","hostname":"169.254.129.10","id":"02286e5a-6229-4a8b-92b0-8c9577eec5d8","name":"169.254.129.10",
"type":"functionbeat","version":"7.10.1"},"asctime":"2022-07-22T15:14:49+0000","cloud":{"provider":"aws"},"ecs":{"version":"1.6.0"},
"event":{"kind":"event"},"host":{"architecture":"x86_64","containerized":true,"hostname":"169.254.129.10","ip":["169.254.xx.x","169.254.xx.x"],"
mac":["06:f3:df:c1:44:6c","7e:74:63:86:f1:fa"],"name":"169.254.129.10","os":{"family":"redhat","kernel":"4.14.255-276-224.499.amzn2.x86_64",
"name":"Amazon Linux AMI","platform":"amzn","version":"2018.03"}},"id":"369858",
"levelname":"INFO","lineno":76,"log_group":"/aws/lambda/test-lambda-dev-us-east-1","log_stream":"2022/07/22/[$LATEST]d49617204e0f4035acdea",
"message":"Quote None error response from legacy: POST HTTPSConnectionPool(host='api.test.test.io', port=443): Max retries exceeded with url:
 /legacy/offers (Caused by NewConnectionError('\u003curllib3.connection.HTTPSConnection object at 0x7f95962e5a90\u003e: 
 Failed to establish a new connection: [Errno -2] Name or service not known'))","message_type":"DATA_MESSAGE",
 "name":"root","owner":"94517143256","process":8,"subscription_filters":
 ["fnb-test-lambda-dev-functionbeat-stack-fnbtestlambdadevuseast1-4KPHULZEP7B1"],
 "traceId":"olesiarequest"}, Private:interface {}(nil), TimeSeries:false}, Flags:0x1, Cache:publisher.EventCache{m:common.MapStr(nil)}} (status=400): 
 
{
    "type": "mapper_parsing_exception",
    "reason": "object mapping for [process] tried to parse field [process] as object, but found a concrete value"
}

Any leads would be highly appreciated, thank you!