# \#aws-lambda

**URL:** https://discuss.elastic.co/tag/aws-lambda/108.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [Question about APM Logs feature support across agents](https://discuss.elastic.co/t/question-about-apm-logs-feature-support-across-agents/383418)

<div class="topic-metadata">

**Author:** [@barcus](https://discuss.elastic.co/u/barcus)\
**Replies:** 3\
**Last updated:** [December 4, 2025, 3:07pm UTC](https://discuss.elastic.co/t/question-about-apm-logs-feature-support-across-agents/383418 "2025-12-04T15:07:34Z")

</div>

Hello APM team, I have a question regarding the experimental feature that allows application logs to be ingested through the APM Agent and stored directly into the APM log indices (one index per APM service). From what…

---

## [AWS Lambda + APM Extension: How to inject custom fields into logs](https://discuss.elastic.co/t/aws-lambda-apm-extension-how-to-inject-custom-fields-into-logs/378761)

<div class="topic-metadata">

**Author:** [@nhannhathegreat](https://discuss.elastic.co/u/nhannhathegreat)\
**Replies:** 1\
**Last updated:** [June 1, 2025, 3:30am UTC](https://discuss.elastic.co/t/aws-lambda-apm-extension-how-to-inject-custom-fields-into-logs/378761 "2025-06-01T03:30:33Z")

</div>

Kibana version: 8.5 Elasticsearch version: 8.5 APM Server version: 8.5 APM Agent language and version: apm-aws-lambda(Nodejs), 1.5.8 Extension Layer ARN: arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-e…

---

## [Failed to handle event of type ERROR with this error: null](https://discuss.elastic.co/t/failed-to-handle-event-of-type-error-with-this-error-null/372908)

<div class="topic-metadata">

**Author:** [@Nicolae\_Nicora](https://discuss.elastic.co/u/Nicolae_Nicora)\
**Replies:** 14\
**Last updated:** [January 17, 2025, 10:32am UTC](https://discuss.elastic.co/t/failed-to-handle-event-of-type-error-with-this-error-null/372908 "2025-01-17T10:32:26Z")

</div>

Need you help on this null pointer exception! APM Agent used as layers to AWS Lambda: arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-extension-ver-1-5-7-arm64:1 arn:aws:lambda:eu-west-1:267093732750:layer…

---

## [Separate transaction for every resolver in AWS Lambda](https://discuss.elastic.co/t/separate-transaction-for-every-resolver-in-aws-lambda/369688)

<div class="topic-metadata">

**Author:** [@mkaniaa](https://discuss.elastic.co/u/mkaniaa)\
**Replies:** 7\
**Last updated:** [November 9, 2024, 4:28pm UTC](https://discuss.elastic.co/t/separate-transaction-for-every-resolver-in-aws-lambda/369688 "2024-11-09T16:28:49Z")

</div>

Hello! I'm using Elastic APM v8.15.0 with an AWS Lambda function written in Node.js, integrated via elastic-apm-node v4.7.3. My Lambda function has three separate resolvers. Here’s my current configuration setup: local…

---

## [Observability/apm-lambda-extension docker image causing vulnerabilities](https://discuss.elastic.co/t/observability-apm-lambda-extension-docker-image-causing-vulnerabilities/350685)

<div class="topic-metadata">

**Author:** [@SELENAAA](https://discuss.elastic.co/u/SELENAAA)\
**Replies:** 8\
**Last updated:** [January 11, 2024, 9:31pm UTC](https://discuss.elastic.co/t/observability-apm-lambda-extension-docker-image-causing-vulnerabilities/350685 "2024-01-11T21:31:34Z")

</div>

I'm following this guide to add a nodejs apm agent to my container image based function; however, the observability/apm-lambda-extension is causing some scan image vulnerabilities with the package go. I'm searching for t…

---

## [Unable to reach APM Server: 'Connection aborted.' RemoteDisconnected('Remote end closed connection without response')) (url: http://127.0.0.1:8200/intake/v2/events). (potentially caused by apm-lambda-extension/extension.handleIntakeV2Events exception)](https://discuss.elastic.co/t/unable-to-reach-apm-server-connection-aborted-remotedisconnected-remote-end-closed-connection-without-response-url-http-127-0-0-1-8200-intake-v2-events-potentially-caused-by-apm-lambda-extension-extension-handleintakev2events-exception/347039)

<div class="topic-metadata">

**Author:** [@Anton\_Matviyenko](https://discuss.elastic.co/u/Anton_Matviyenko)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 5:01am UTC](https://discuss.elastic.co/t/unable-to-reach-apm-server-connection-aborted-remotedisconnected-remote-end-closed-connection-without-response-url-http-127-0-0-1-8200-intake-v2-events-potentially-caused-by-apm-lambda-extension-extension-handleintakev2events-exception/347039 "2023-11-14T05:01:40Z")

</div>

Dear Elastic Team, It looks like this issue is similar to the following: We do use Python APM Elastic Agent along with Sentry and in Sentry we do see the following exceptions: Failed to submit message: "Unable to …

---

## [AWS Lambda with Webpack throws error](https://discuss.elastic.co/t/aws-lambda-with-webpack-throws-error/346575)

<div class="topic-metadata">

**Author:** [@Myths](https://discuss.elastic.co/u/Myths)\
**Replies:** 4\
**Last updated:** [November 7, 2023, 6:49pm UTC](https://discuss.elastic.co/t/aws-lambda-with-webpack-throws-error/346575 "2023-11-07T18:49:07Z")

</div>

I am trying to use the aws lambda layer to communicate with APM We use webpack for bundling , I am getting below error. I have tried including the elastic-apm-node in package.json with no luck . Just wondering if the…

---

## [Transaction result setting as failure/spindown](https://discuss.elastic.co/t/transaction-result-setting-as-failure-spindown/342950)

<div class="topic-metadata">

**Author:** [@gabriel-f-santos](https://discuss.elastic.co/u/gabriel-f-santos)\
**Replies:** 0\
**Last updated:** [September 13, 2023, 12:28pm UTC](https://discuss.elastic.co/t/transaction-result-setting-as-failure-spindown/342950 "2023-09-13T12:28:12Z")

</div>

Hello everyone! We are using agent and APM extensions for monitoring our serverless application with Python Lambdas. We're following this configuration for SAM applications: APM Agent language and version : Language: …

---

## [Missing Service Map when integrating Elastic APM with AWS Lambda?](https://discuss.elastic.co/t/missing-service-map-when-integrating-elastic-apm-with-aws-lambda/338288)

<div class="topic-metadata">

**Author:** [@Tosho\_Toshev](https://discuss.elastic.co/u/Tosho_Toshev)\
**Replies:** 3\
**Last updated:** [July 24, 2023, 10:10am UTC](https://discuss.elastic.co/t/missing-service-map-when-integrating-elastic-apm-with-aws-lambda/338288 "2023-07-24T10:10:40Z")

</div>

Hello, I'm new to Elastic APM and I'm trying to integrate it with AWS Lambda. I followed the steps described here: Monitoring AWS Lambda I added the necessary layers and environment variables to my lambda functions. Af…

---

## [How can we pass elasticapm object for a function inside the threadpool executor](https://discuss.elastic.co/t/how-can-we-pass-elasticapm-object-for-a-function-inside-the-threadpool-executor/337646)

<div class="topic-metadata">

**Author:** [@sairam\_kadakuntla](https://discuss.elastic.co/u/sairam_kadakuntla)\
**Replies:** 8\
**Last updated:** [July 18, 2023, 11:52am UTC](https://discuss.elastic.co/t/how-can-we-pass-elasticapm-object-for-a-function-inside-the-threadpool-executor/337646 "2023-07-18T11:52:17Z")

</div>

how can we pass elastic apm object through threadpool and add labels to that function

---

## [AWS Lambda with OpenTelemetry/dotnet - No data in the “Metrics” section](https://discuss.elastic.co/t/aws-lambda-with-opentelemetry-dotnet-no-data-in-the-metrics-section/331058)

<div class="topic-metadata">

**Author:** [@javaripa](https://discuss.elastic.co/u/javaripa)\
**Replies:** 5\
**Last updated:** [May 30, 2023, 11:31am UTC](https://discuss.elastic.co/t/aws-lambda-with-opentelemetry-dotnet-no-data-in-the-metrics-section/331058 "2023-05-30T11:31:18Z")

</div>

Kibana version: 8.6.1 Elasticsearch version: 8.6.1 APM Server version: 8.6.1 Fresh install or upgraded from other version? Fresh installation Description of the problem including expected versus actual behavior. Ple…

---

## [How to send error message to Elastic APM and show the error in Kibana tab](https://discuss.elastic.co/t/how-to-send-error-message-to-elastic-apm-and-show-the-error-in-kibana-tab/329183)

<div class="topic-metadata">

**Author:** [@JasonREC](https://discuss.elastic.co/u/JasonREC)\
**Replies:** 8\
**Last updated:** [April 11, 2023, 6:31pm UTC](https://discuss.elastic.co/t/how-to-send-error-message-to-elastic-apm-and-show-the-error-in-kibana-tab/329183 "2023-04-11T18:31:58Z")

</div>

I followed the set up of this page I am using the template.yml to set up my lambda function and Elastic APM ... Resources: yourLambdaFunction: Type: AWS::Serverless::Function Properties: ... Envi…

---

## [Cannot send error to Elastic APM from AWS lambda](https://discuss.elastic.co/t/cannot-send-error-to-elastic-apm-from-aws-lambda/328909)

<div class="topic-metadata">

**Author:** [@JasonREC](https://discuss.elastic.co/u/JasonREC)\
**Replies:** 2\
**Last updated:** [March 31, 2023, 3:06am UTC](https://discuss.elastic.co/t/cannot-send-error-to-elastic-apm-from-aws-lambda/328909 "2023-03-31T03:06:50Z")

</div>

Kibana version: Latest Cloud version Elasticsearch version: Latest Cloud version APM Server version: Latest Cloud version APM Agent language and version:NodeJS I followd exactly this page to do the set up (Monitoring…

---

## [APM Agent for .NET docker AWS Lambda](https://discuss.elastic.co/t/apm-agent-for-net-docker-aws-lambda/327834)

<div class="topic-metadata">

**Author:** [@xardes](https://discuss.elastic.co/u/xardes)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 6:43pm UTC](https://discuss.elastic.co/t/apm-agent-for-net-docker-aws-lambda/327834 "2023-03-17T18:43:29Z")

</div>

According to the documentation , there is no apm agent for lambda functions that run in .net. Is there any plan to add such an agent? Is there any option to monitor such functions at this time?

---

## [How to start and end transaction in python aws lambda function , also how to add labels between transaction](https://discuss.elastic.co/t/how-to-start-and-end-transaction-in-python-aws-lambda-function-also-how-to-add-labels-between-transaction/324320)

<div class="topic-metadata">

**Author:** [@Pratiksha\_Nagoshe](https://discuss.elastic.co/u/Pratiksha_Nagoshe)\
**Replies:** 16\
**Last updated:** [February 21, 2023, 4:21am UTC](https://discuss.elastic.co/t/how-to-start-and-end-transaction-in-python-aws-lambda-function-also-how-to-add-labels-between-transaction/324320 "2023-02-21T04:21:16Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight\_smile: TIP 1: select at lea…

---

## [How do I setup log correlation when using extension layers?](https://discuss.elastic.co/t/how-do-i-setup-log-correlation-when-using-extension-layers/320309)

<div class="topic-metadata">

**Author:** [@wjensen-godaddy](https://discuss.elastic.co/u/wjensen-godaddy)\
**Replies:** 11\
**Last updated:** [December 2, 2022, 8:38pm UTC](https://discuss.elastic.co/t/how-do-i-setup-log-correlation-when-using-extension-layers/320309 "2022-12-02T20:38:10Z")

</div>

Hi! I'm using the following two extension layers: arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-extension-ver-1-0-2-x86\_64:1, arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-node-ver-3-38-0:1 The APM …

---

## [How to add api gateway api key to lambda APM?](https://discuss.elastic.co/t/how-to-add-api-gateway-api-key-to-lambda-apm/317854)

<div class="topic-metadata">

**Author:** [@alex\_123123](https://discuss.elastic.co/u/alex_123123)\
**Replies:** 2\
**Last updated:** [November 2, 2022, 2:44am UTC](https://discuss.elastic.co/t/how-to-add-api-gateway-api-key-to-lambda-apm/317854 "2022-11-02T02:44:50Z")

</div>

Kibana version: 8.4.1 Elasticsearch version: 8.4.1 APM Server version: 8.4.1 APM Agent language and version: nodejs, elastic-apm-extension-ver-1-1-0-x86\_64, elastic-apm-node-ver-3-38-0 Browser version: / Original in…

---

## [How to flush APM transaction before shutting down application (.net 6 / console / Lambda)](https://discuss.elastic.co/t/how-to-flush-apm-transaction-before-shutting-down-application-net-6-console-lambda/317748)

<div class="topic-metadata">

**Author:** [@jimmie](https://discuss.elastic.co/u/jimmie)\
**Replies:** 2\
**Last updated:** [October 30, 2022, 9:34am UTC](https://discuss.elastic.co/t/how-to-flush-apm-transaction-before-shutting-down-application-net-6-console-lambda/317748 "2022-10-30T09:34:37Z")

</div>

I'm using Elastic APM on my .NET 6 API which works perfectly fine. I'm trying to get it roll on my console and AWS Lamdba deploys as well. I moved out the important pieces to a separate project to easier debug and show…

---

## [SyntaxError: Unexpected token { in JSON at position 2955 - AWS Lambda NodeJS module of APM](https://discuss.elastic.co/t/syntaxerror-unexpected-token-in-json-at-position-2955-aws-lambda-nodejs-module-of-apm/316525)

<div class="topic-metadata">

**Author:** [@preetish\_P](https://discuss.elastic.co/u/preetish_P)\
**Replies:** 2\
**Last updated:** [October 14, 2022, 6:21am UTC](https://discuss.elastic.co/t/syntaxerror-unexpected-token-in-json-at-position-2955-aws-lambda-nodejs-module-of-apm/316525 "2022-10-14T06:21:13Z")

</div>

Hello, We are trying to implement the AWS Lambda agent for APM as per below documentation: Added below variables: Defined outbound rules for security groups under 'VPC' section over port 8200 However after firing…

---

## [Not able connect to elastic apm server from AWS lambda](https://discuss.elastic.co/t/not-able-connect-to-elastic-apm-server-from-aws-lambda/312813)

<div class="topic-metadata">

**Author:** [@Pratiksha\_Nagoshe](https://discuss.elastic.co/u/Pratiksha_Nagoshe)\
**Replies:** 23\
**Last updated:** [September 14, 2022, 5:09am UTC](https://discuss.elastic.co/t/not-able-connect-to-elastic-apm-server-from-aws-lambda/312813 "2022-09-14T05:09:43Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight\_smile: TIP 1: select at lea…
