# AWS integrations: Troubleshoot OneAgent integration into your application image

**URL:** <https://community.dynatrace.com/t/aws-integrations-troubleshoot-oneagent-integration-into-your-application-image/42953>\
**Category:** Troubleshooting\
**Tags:** aws, oneagent\
**Created:** [December 1, 2023, 8:37am UTC](https://community.dynatrace.com/t/aws-integrations-troubleshoot-oneagent-integration-into-your-application-image/42953 "2023-12-01T08:37:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![virgi-df](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@virgi-df](https://community.dynatrace.com/u/virgi-df)\
**Post date:** [December 1, 2023, 8:37am UTC](https://community.dynatrace.com/t/aws-integrations-troubleshoot-oneagent-integration-into-your-application-image/42953/1 "2023-12-01T08:37:53Z")

</div>

**PROBLEM**

When you integrate OneAgent into your&nbsp;[AWS Fargate](https://docs.dynatrace.com/docs/shortlink/aws-fargate#integrate-oneagent-into-your-application-image) or [AWS App Runner](https://docs.dynatrace.com/docs/shortlink/aws-apprunner#integrate-oneagent-into-your-application-image)&nbsp;application image, you encounter issues you want to investigate further.

**SOLUTION**

You can use the&nbsp;[troubleshooting variable](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/microsoft-azure-services/azure-integrations/azure-appservice/integrate-oneagent-on-web-app-for-containers#troublevariable) `DT_LOGLEVELCON`&nbsp;with the value&nbsp;`INFO`&nbsp;to see OneAgent logs in the CloudWatch logs. To use&nbsp;`DT_LOGLEVELCON`, do one of the following, depending on the integration and injection type.

- [AWS Fargate automatic injection](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-fargate#autoinjection)  
Make sure the `DT_LOGLEVELCON` environmental variable is defined and set to `INFO` on the container where OneAgent runs.

- [AWS Fargate build-time injection](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-fargate#buildtime) or [AWS App Runner build-time injection](https://docs.dynatrace.com/docs/shortlink/aws-apprunner#buildtime)  
Enter an additional line of code to the application image as in the example below:

- [AWS Fargate runtime injection](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-fargate#runtime)  
Go to&nbsp; **Environment** &nbsp;\>&nbsp; **Environment variable** and define `DT_LOGLEVELCON`with the value `INFO`.
