Skip to content

Commit aa79f3a

Browse files
authored
docs(aws): Removing JSON explanation in the include at match documentation (#1007)
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
1 parent d936bdd commit aa79f3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aws/logs_monitoring/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ For all configuration options and details, including [Multi-Region deployment][2
468468
[203]: https://docs.datadoghq.com/getting_started/site/#access-the-datadog-site
469469
[204]: https://app.datadoghq.com/organization-settings/api-keys
470470
[205]: https://registry.terraform.io/modules/DataDog/log-lambda-forwarder-datadog/aws/latest#multi-region-deployments
471+
471472
{{% /tab %}}
472473
{{% tab "Manual" %}}
473474
@@ -553,15 +554,14 @@ Datadog recommends using at least 10 reserved concurrency, but this defaults to
553554
`INCLUDE_AT_MATCH`
554555
: Only send logs matching the supplied regular expression, and not excluded by `EXCLUDE_AT_MATCH`.
555556
556-
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.
557+
Filtering rules are applied to the log message as read by the forwarder. Using an inefficient regular expression, such as `.*`, may slow down the Forwarder.
557558
558559
Some examples of regular expressions that can be used for log filtering:
559560
560-
- 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.
561+
- 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.
561562
- Include CloudTrail error messages only: `errorMessage`.
562563
- Include only logs containing an HTTP 4XX or 5XX error code: `\b[4|5][0-9][0-9]\b`.
563-
- Include only CloudWatch logs where the `message` field contains a specific JSON key/value pair: `\"awsRegion\":\"us-east-1\"`.
564-
- 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\"`.
564+
- Include only CloudWatch logs where the `message` field contains a specific JSON key/value pair: `"awsRegion":"us-east-1"`.
565565
566566
To test different patterns against your logs, turn on [debug logs](#troubleshooting).
567567

0 commit comments

Comments
 (0)