Closed HaithamMaya closed 6 months ago
Hi @HaithamMaya , I don't think there is, so I'd say this a pretty good feature request. I'll take a another look to make sure but yea, it would be a cool feature.
this would be a great tool. I sometimes find myself looking for an exception only to have to get the timestamp and scroll to the exception to see what happened before and after the exception occurred.
This is necessary
Agreed, it would very helpful to have this functionality built-in.
Agreed + 1. Need it a lot.
I would love this functionality.
+1
+1 Want!
+1 as well. Definitely would be a huge win for Cloud Native log filtering!
Thanks all for your feedback and enthusiasm around this issue!
This would be difficult to implement in the AWS CLI. There is one customization available for log filtering with the aws logs tail
command. This is significantly more complex. We would need to implement our own filter pattern instead of relying on the existing one.
I've requested this feature with the CloudWatch logs team to see if it could be performed server-side and will update when I hear back.
V345354868
+1 !
+1
+1
+1
+1
Found this issue Googling because I desperately need to do this right now. ðŸ˜
+1
+1
The logging team is aware of the feature request. I don't have any other details on if or when it would be implemented on their side.
+1 This would be a great addition. Not just in the cli, but also in the interface.
+1
THIS IS NOT BAR RAISING CUSTOMER OBSESSION
Hi all, thanks for the feedback. I'm checking in with the CloudWatch team to see if there are any other updates that I can provide on this issue, and will post here if I hear back.
Since this is an issue for the service team and not specific to the AWS CLI, I'm going to move this issue to the AWS SDK repository. The current link to this issue will redirect to the transferred repository.
+1
+1
+1
cloudwatch cannot be considered a minimally viable product without this functionality
P51017282
+1
+1
+1
+1
+1
how has this not made it in yet +1
+1 please 🙇
+1 :pray:
+1
+1
+1
+1
+1
Almost 3 years and still no news of this feature.. :(
I find myself needing this on a daily basis. +1
This is very important feature, Elastic Search and Grafana have support for this issue.
+1
+1
+1
+1
+1
+1 how has this not been implemented yet, grep has had this feature for longer than most people in this thread have been alive
Is there a way to include N lines before and/or after a matching pattern in AWS CloudWatch Logs?
Let's say I have this query and would like 3 lines before and after each match.
The only work around I have at the moment is to remove the filter pattern and use grep:
However, I would like to only stream the log events I need and do it as part of the aws log events query.
Ref: https://stackoverflow.com/questions/59217130/aws-cloudwatch-logs-filter-pattern-include-lines-before-and-or-after-matching-pa