lib/aws_logs/help/tail.md in aws-logs-0.1.0 vs lib/aws_logs/help/tail.md in aws-logs-0.2.0
- old
+ new
@@ -39,6 +39,19 @@
* m - minutes
* h - hours
* d - days
* w - weeks
-Since does not current support combining the formats. IE: 5m30s.
\ No newline at end of file
+Since does not current support combining the formats. IE: 5m30s.
+
+## Filter Pattern
+
+The `--filter-pattern` option is quite powerful as CloudWatch supports a full
+[Filter and Pattern Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
+
+To match terms with spaces in it, you'll need quotes around it. Otherise, the match will be an OR of the terms. Example:
+
+ aws-logs tail /aws/codebuild/demo --filter-pattern '"Wed Nov 27 23"' --since 3h --no-follow
+
+Here's an example of matching with an exclude patter using the `-` (minus sign).
+
+ aws-logs tail /aws/codebuild/demo --filter-pattern '"ERROR" - "Exiting"' --since 3h --no-follow