Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 8583950

Browse files
authored
Update logging_utils.go
Signed-off-by: Azanul Haque <[email protected]>
1 parent 932e97b commit 8583950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/tasks/logs/logging_utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func InitializeLogPlugins(cfg *LogConfig) (tasklog.Plugin, error) {
9797
logPlugins = append(logPlugins, logPlugin{Name: "Cloudwatch Logs", Plugin: tasklog.NewTemplateLogPlugin([]string{cfg.CloudwatchTemplateURI}, core.TaskLog_JSON)})
9898
} else {
9999
logPlugins = append(logPlugins, logPlugin{Name: "Cloudwatch Logs", Plugin: tasklog.NewTemplateLogPlugin(
100-
[]string{fmt.Sprintf("https://console.aws.amazon.com/cloudwatch/home?region=%s#logEventViewer:group=%s;stream=var.log.containers.{{ .podName }}_{{ .namespace }}_{{ .containerName }}-{{ .containerId }}.log", cfg.CloudwatchRegion, cfg.CloudwatchLogGroup)}, core.TaskLog_JSON)})
100+
[]string{fmt.Sprintf("https://console.aws.amazon.com/cloudwatch/home?region=%s#logsV2:log-groups/log-group/%s$3FlogStreamNameFilter=var.log.containers.{{ .podName }}_{{ .namespace }}_{{ .containerName }}", cfg.CloudwatchRegion, cfg.CloudwatchLogGroup)}, core.TaskLog_JSON)})
101101
}
102102
}
103103

0 commit comments

Comments
 (0)