Skip to content

Commit 7d9966d

Browse files
ViBiOhge0Aja
andauthored
docs(aws): Update documentation related to include at match (#1021)
* docs(aws): Update documentation related to include at match Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * Update aws/logs_monitoring/README.md Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com> --------- Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com>
1 parent 735c9f2 commit 7d9966d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

aws/logs_monitoring/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,15 +401,14 @@ Datadog recommends using at least 10 reserved concurrency, but this defaults to
401401
`IncludeAtMatch`
402402
: Only send logs matching the supplied regular expression, and not excluded by `ExcludeAtMatch`.
403403
404-
Filtering rules are applied to the full JSON-formatted log, including any metadata that is automatically added by the Forwarder. However, transformations applied by [log pipelines][21], which occur after logs are sent to Datadog, cannot be used to filter logs in the Forwarder. Using an inefficient regular expression, such as `.*`, may slow down the Forwarder.
404+
Filtering rules are applied to the log message. However, transformations applied by [log pipelines][21], which occur after logs are sent to Datadog, cannot be used to filter logs in the Forwarder. Using an inefficient regular expression, such as `.*`, may slow down the Forwarder.
405405
406406
Some examples of regular expressions that can be used for log filtering:
407407
408-
- Include (or exclude) Lambda platform logs: `"(START|END) RequestId:\s`. The preceding `"` is needed to match the start of the log message, which is in a JSON blob (`{"message": "START RequestId...."}`). Datadog recommends keeping the `REPORT` logs, as they are used to populate the invocations list in the serverless function views.
408+
- Include (or exclude) Lambda platform logs: `(START|END) RequestId:\s`. Datadog recommends keeping the `REPORT` logs, as they are used to populate the invocations list in the serverless function views.
409409
- Include CloudTrail error messages only: `errorMessage`.
410410
- Include only logs containing an HTTP 4XX or 5XX error code: `\b[4|5][0-9][0-9]\b`.
411-
- Include only CloudWatch logs where the `message` field contains a specific JSON key/value pair: `\"awsRegion\":\"us-east-1\"`.
412-
- The message field of a CloudWatch log event is encoded as a string. For example,`{"awsRegion": "us-east-1"}` is encoded as `{\"awsRegion\":\"us-east-1\"}`. Therefore, the pattern you provide must include `\` escape characters, like this: `\"awsRegion\":\"us-east-1\"`.
411+
- Include only CloudWatch logs where the `message` field contains a specific JSON key/value pair: `"awsRegion":"us-east-1"`.
413412
414413
To test different patterns against your logs, turn on [debug logs](#troubleshooting).
415414

0 commit comments

Comments
 (0)