Sending Events and Logs to Datadog with Amazon EventBridge API Destinations

Amazon EventBridge is a serverless event bus that enables you to build event-driven applications. EventBridge can integrate with your AWS services, but the API destinations feature lets you push and pull data from outside of AWS using APIs. This guide gives steps for sending your events and logs from EventBridge to Datadog. For more information about pushing your events from Datadog to EventBridge, see the EventBridge integration docs.

Setup

Before you begin, you need a Datadog account, with an API key, and you need access to Amazon Eventbridge API destinations.

Configuration

  1. Follow the steps in the Amazon Create an API destination docs to add Datadog as an API destination.

    • Use API key authorization, with DD-API-KEY as your key name and your Datadog API key as the value.
    • For your destination endpoint, use https://http-intake.logs.datadoghq.com/v1/input for logs or https://api.datadoghq.com/api/v1/events for events, and set POST as the HTTP method. For more information about the differences between logs and events, see the logs section, and the events section of the Categories of Data docs page.
  2. Once you’ve set up the destination, you can now follow the Amazon instructions to create an EventBridge rule, where you set Datadog as your destination.

  3. Once you’ve set up the rule with Datadog as the destination, trigger an event by posting an event to EventBridge. For more information about pushing events to EventBridge from Datadog, see the EventBridge integration docs. For example, to trigger a test event by uploading the objects to an S3 bucket in your account, use this AWS CloudShell command:

    echo "test" > testfile.txt
    aws s3 cp testfile.txt s3://YOUR_BUCKET_NAME
    
  4. Once events and logs are sending, after about five minutes, the data is available in the Datadog logs console or events stream, depending on which endpoint you are sending them to.

Further Reading

Additional helpful documentation, links, and articles: