Tutorial: Configure DataDog for CloudConnexa Log Streaming⁠

DataDog configuration can be done using the Serverless setup in which an AWS Lambda function reads from the AWS S3 Bucket and writes log messages to HTTP(S) DataDog endpoints.

Prerequisites⁠

Configure⁠

  1. Install DataDog Forwarder Using CloudFormation

    1. On the AWS stack configuration screen, specify your AWS S3 bucket name, DataDog endpoint, DataDog API key, and any other optional parameters as required.

      Screenshot of CloudFormation Stack Configuration⁠
      Screenshot of CloudFormation Stack Configuration
    2. Wait until the Lamda function is ready for use.

Test⁠

  1. Navigate to API & Logs > Log Streaming and click Send Test Message.

    Screenshot of Log Streaming showing the 'Send Test Message' button⁠
    Screenshot of Log Streaming showing the 'Send Test Message' button

  2. Check that a log file is written to your AWS S3 bucket in response to requesting that a test message be sent in the prior step. The log will appear as <S3Bucket>/CloudConnexa/<account id>/<hexid>-<YYYY>-<MM>-<DD>-<HH>-<MM>-<xxxx>.jsonl.gz

    Screenshot of log files in the AWS S3 bucket⁠
    Screenshot of log files in the AWS S3 bucket
  3. Events from the *.jsonl.gz files are parsed by the Lambda function and sent to DataDog. You can find it in the Logs section.

    Screenshot of a parsed event in DataDog⁠
    Screenshot of a parsed event in DataDog