This module sets up a lambda that will forward AWS logs to Azure Sentinel. It is a light wrapper on the code found here (https://github.com/cds-snc/aws-sentinel-connector-layer) and just stitches together the code with the triggers.
Triggers can be EventHub rules, S3 ObjectCreated events, or CloudWatch Log Subscriptions. The following log types are supported:
- CloudTrail (.json.gz)
- Load balancer (.log.gz)
- VPC flow logs (.log.gz)
- WAF ACL (.gz)
- GuardDuty
- SecurityHub (via EventHub)
- Generic application json logs
You will need to add your Log Analytics Workspace Customer ID and Shared Key. AWS logs are automatically assigned a LogType.
Custom application logs are given the log type defined through the var.log_type
. They also need to be nested inside a json
object with the key, application_log
. ex: {'application_log': {'foo': 'bar'}}
for the layer code to forward it to Azure Sentinel.
Name | Version |
---|---|
aws | >= 3.46.0 |
Name | Version |
---|---|
archive | n/a |
aws | >= 3.46.0 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
billing_tag_key | (Optional, default 'CostCentre') The name of the billing tag | string |
"CostCentre" |
no |
billing_tag_value | (Required) The value of the billing tag | string |
n/a | yes |
cloudwatch_log_arns | (Optional) A list of CloudWatch log ARNs to forward to Sentinel | list(string) |
[] |
no |
customer_id | (Required) Azure log workspace customer ID | string |
n/a | yes |
event_rule_names | (Optional) List of names for event rules to trigger the lambda | list(string) |
[] |
no |
function_name | (Required) Name of the Lambda function. | string |
n/a | yes |
layer_arn | (Optional) ARN of the lambda layer to use | string |
"arn:aws:lambda:ca-central-1:283582579564:layer:aws-sentinel-connector-layer:20" |
no |
log_type | (Optional) The namespace for logs. This only applies if you are sending application logs | string |
"ApplicationLog" |
no |
s3_sources | (Optional) List of s3 buckets to trigger the lambda | list(object({ |
[] |
no |
shared_key | (Required) Azure log workspace shared secret | string |
n/a | yes |
Name | Description |
---|---|
lambda_arn | The ARN of the Lambda function. |
lambda_name | The name of the Lambda function. |