Skip to content

Commit

Permalink
add filtering docs to log filtering section
Browse files Browse the repository at this point in the history
  • Loading branch information
aateeqi committed Feb 28, 2022
1 parent 933cde6 commit b95037e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The following targets are available. Each may be run with `make <target>`.

## 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
Expand All @@ -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
Expand Down

0 comments on commit b95037e

Please sign in to comment.