Skip to content

Commit f5eddea

Browse files
author
Jeel Mehta
committed
Test1
1 parent 41bbc09 commit f5eddea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator/src/main/java/com/amazon/aoc/validators/CWLogValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private Map<String, Object> getActualOtelSpanLog(String operation, String remote
237237
private Map<String, Object> getActualOtlpSigV4Log() throws Exception {
238238
// Filter pattern to match OTLP SigV4 logs
239239
String filterPattern = String.format(
240-
"{ ($.attributes.[\'service.name\'] = \"%s\") && $.body EXISTS && $.severityNumber EXISTS && $.severityText EXISTS }",
240+
"{ ($.resource.attributes.service.name = \"%s\") && $.body EXISTS && $.severityNumber EXISTS && $.severityText EXISTS }",
241241
context.getServiceName()
242242
);
243243
log.info("Filter Pattern for OTLP SigV4 Log Search: " + filterPattern);

0 commit comments

Comments
 (0)