You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: loggroup-lambda-connector/Readme.md
+24-9Lines changed: 24 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# SumoLogic LogGroup Connector
2
2
This is used to automatically subscribe newly created and existing Cloudwatch LogGroups to a Lambda function.
3
3
4
-
**Note:**
4
+
> **Note:**
5
5
For existing CloudWatch LogGroups, a Lambda function can subscribe to up to 65,000 LogGroups.
6
6
If the number of LogGroups exceeds 65,000, you can request to disable Lambda recursive loop detection by [contact AWS Support](https://repost.aws/knowledge-center/aws-phone-support).
7
7
@@ -25,13 +25,30 @@ Made with ❤️ by Sumo Logic. Available on the [AWS Serverless Application Rep
25
25
26
26
27
27
### Configuring Lambda
28
-
It has two environment variables
29
-
30
-
**LOG_GROUP_PATTERN**: This is a javascript regex to filter out loggroups. Only loggroups which match this pattern will be subscribed to the lambda function.Do not use '/' while writing the pattern and it is case insensitive.
31
-
32
-
```
33
-
Test - will match testlogroup, logtestgroup and LogGroupTest
28
+
#### Environment variables
29
+
30
+
**LOG_GROUP_PATTERN**: This JavaScript regex is used to filter log groups. Only log groups that match this pattern will be subscribed to the Lambda function. The default value is `Test`, which will match log groups like `testlogroup`, `logtestgroup`, and `LogGroupTest`.
| To subscribe all loggroup |`/*` or (leave empty) |
37
+
| To subscribe all loggroup paths only |`/`|
38
+
| To subscribe all loggroup of aws services |`/aws/*`|
39
+
| To subscribe to loggroups for only one service, such as Lambda |`/aws/lambda/*`|
40
+
| To subscribe loggroup multiple services like lambda, rds, apigateway |`/aws/(lambda\|rds\|apigateway)`|
41
+
| To subscribe loggroup by key word like `Test` or `Prod`|`Test` or `Prod`[Case insensitive]|
42
+
| Don't subscribe if `LOG_GROUP_PATTERN`|`^$`|
43
+
44
+
**LOG_GROUP_TAGS**: This is used to filter log groups based on tags. Only log groups that match any of the specified key-value pairs will be subscribed to the Lambda function. It is case-sensitive.
> 💡 **Tip**: To filter log groups based on tags only, set `LOG_GROUP_PATTERN=^$`.
50
+
51
+
> **Note**: `LOG_GROUP_PATTERN` and `LOG_GROUP_TAGS` can be used together to subscribe to log groups or can be used separately.
35
52
36
53
**DESTINATION_ARN**: This specifies ARN of the Destination to Subscribe the log group.
37
54
@@ -54,8 +71,6 @@ Lambda Destination ARN :- This specifies ARN of the Lambda function. Also you ha
54
71
55
72
Kinesis Destination ARN :- This specifies the ARN of the kinesis Stream.
56
73
57
-
**LOG_GROUP_TAGS**: This is used for filtering out loggroups based on tags.Only loggroups which match any one of the key value pairs will be subscribed to the lambda function. This works only for new loggroups not existing loggroups.
58
-
59
74
**ROLE_ARN** : This is used when subscription destination ARN is kinesis firehose stream.
0 commit comments