A Lacework AWS CloudWatch alert channel can forward Lacework alerts to you via CloudWatch. You can then configure a rule to send alerts to a specified target via SNS. After this is setup, you can subscribe a Sumo Logic custom app endpoint to the SNS topic. This allows your Lacework alerts to be sent via SNS (Simple Notification Service) subscription to your Sumo Logic custom app endpoint where you can view alert data in Sumo Logic.
Follow these steps to set up a Sumo Logic alert channel in Lacework:
Create a Lacework Alert Channel
Configure a Lacework alert channel with AWS CloudWatch.
Set Up an SNS Topic
- In AWS, navigate to SNS, and on the left menu, select Topics.
- Click Create new topic and provide a Topic name and Display name.
Configure CloudWatch to Send to Your SNS Topic as a Target
- In AWS, navigate to CloudWatch.
- Under Events > Rules, click into the rule you created with the AWS CloudWatch integration.
- In the top right, select Actions > Edit to bring up the rule and target page. On the left, you should see the custom event pattern you configured when setting up CloudWatch. On the right, you should see where you can configure your targets.
- Click Add target.
- In the Target drop-down, select SNS topic.
- In the Topic drop-down, select the SNS topic you configured to receive Lacework events.
- (Optional) Under Configure input, select Part of the matched event and input the following:
Configure Sumo Logic HTTP Endpoint
- In Sumo Logic, navigate to Manage Data > Collection.
- In the top right, click Add Collector.
- Select Hosted Collector.
Provide a name, for example, HTTP, and optional description, category, and time zone. Click Save to create your collector.
- Add a data source to your collector by proceeding or clicking Add source.
- Under Cloud APIs, select HTTP Logs & Metrics.
- Provide a name for your source as well as optional configuration. For additional information about configuring a source and options, see the Sumo Logic documentation Add a Source.
- Click Save.
This generates an HTTP source address. This address is the endpoint you subscribe to the previously configured SNS topic.
Subscribe Sumo Logic HTTP Endpoint to SNS Topic
- In AWS, navigate to SNS, and on the left menu select Topics.
- Go into the SNS topic by clicking the ARN of the topic that was created in the previous Set Up an SNS Topic procedure.
- Under Subscriptions, click Create subscription.
- The Topic ARN should be populated with the ARN of your SNS topic.
- For protocol, select HTTPS.
- For endpoint, input the HTTP source address url generated when creating your Sumo Logic HTTP endpoint.
- This initializes the configuration for Lacework events to be sent via CloudWatch to the SNS topic subscribed to by the Sumo Logic HTTP endpoint. Upon subscription, complete the verification by navigating to an event sent into Sumo Logic and clicking the URL to confirm subscription.
Configure SNS to Send Raw Message Delivery
- In AWS > SNS, click into the ARN to select your topic.
- Under Subscriptions, click Other subscription actions and select Edit subscription attributes.
- Select the raw message delivery checkbox and click Set subscription attributes.