cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
virgi-df
Dynatrace Guide
Dynatrace Guide

PROBLEM

After configuring log collection for AWS Lambda, the log exporter prints errors saying that log ingest is disabled or receives an HTTP 429 status code.

SOLUTION

  1. Make sure you're using Log Monitoring v2.
  2. If you are using Log monitoring v2, check that your log events ingest limit is sufficient.
    1. In the Dynatrace menu, go to Settings > Internal > Indexed Log Storage Settings.
    2. Enter a reasonable value for Maximum ingest of Log Events (100000 is the default).
  3. If other troubleshooting methods don't resolve your issue, you can enable debug logging of the log collector.
    In your Lambda function's configuration, set the environment variables to the following values.
    Environment variable Value
    DT_LOG_COLLECTION_LOG_LEVEL

    debug 

    DT_LOGGING_DESTINATION

    stdout


    Alternatively, if you are using dtconfig.json configuration, you can enable debug logging by setting the LogCollection.LogLevel and Logging.Destination properties:
    {
      ...other values...
      "Logging": {
        "Destination": "stdout"
      },
      "LogCollection": {
        ...other values...
        "LogLevel": "debug"
      }
    }
    
    The log collector will then print debug logs to the Lambda function's log stream. You can view these logs in the CloudWatch console. Note that the collector will not send its own logs to Dynatrace.
    Important: 
    enabling debug logging should only be used temporarily, as it will generate a large amount of logs in CloudWatch, which may impact the performance of the function.
Version history
Last update:
‎05 Dec 2023 07:50 AM
Updated by: