2 Answers
- Newest
- Most votes
- Most comments
0
Simply put double quotes around the instance id.
answered 7 months ago
0
You can use the following filter pattern in CloudWatch Logs to search (all logs streams) for either of the two IP addresses in the log group, for example:
- 10.1.1.1 - server 1
- 10.2.2.2 - server 2
like this:
%10\.1\.1\.1|10\.2\.2\.2%
Simply update this with your server IPs.
See more syntax rules here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html#matching-terms-events
answered 7 months ago
Does this work for instance IDs as well?
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
Thank you very much
You're welcome!