From b95037e15a2c1baabe9d7630a2d47dff79332232 Mon Sep 17 00:00:00 2001 From: Ateeqi Date: Sun, 27 Feb 2022 20:45:10 -0700 Subject: [PATCH] add filtering docs to log filtering section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88e54dd28c..dad3cafd99 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ The following targets are available. Each may be run with `make `. ## Features ### Log Filtering -CloudWatch agent supports log filtering, where the agent processes each log message with the filters that you specify, and only published events that pass all filters to CloudWatch Logs +CloudWatch agent supports log filtering, where the agent processes each log message with the filters that you specify, and only published events that pass all filters to CloudWatch Logs. See [docs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html#CloudWatch-Agent-Configuration-File-Logssection) for details. For example, the following excerpt of the CloudWatch agent configuration file publishes logs that are PUT and POST requests to CloudWatch Logs, but excluding logs that come from Firefox: ```json @@ -104,7 +104,7 @@ For example, the following excerpt of the CloudWatch agent configuration file pu ] } ``` - +Example with above config: ``` 2021-09-27T19:36:35Z I! [logagent] Firefox Detected // Agent excludes this 2021-09-27T19:36:35Z POST (StatusCode: 200). // Agent would push this to CloudWatch