Skip to content

Commit 077a9cc

Browse files
authored
feat: [cloudwatch][LogMonitoring] added logStream field to query (#86)
Added logStream to the query so the end user can easily do further investigation `npm test` passes Fixes #85 --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_
1 parent a2b9445 commit 077a9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/monitoring/aws-cloudwatch/LogMonitoring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class LogMonitoring extends Monitoring {
7171
* https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html
7272
*/
7373
queryLines: [
74-
"fields @timestamp, @message",
74+
"fields @timestamp, @logStream, @message",
7575
`filter @message like /${this.pattern}/`,
7676
"sort @timestamp desc",
7777
`limit ${this.limit}`,

0 commit comments

Comments
 (0)