提问人:kokoska69 提问时间:10/27/2023 最后编辑:kokoska69 更新时间:10/27/2023 访问量:34
AWS CloudWatch 参与者见解筛选通配符
Aws cloudwatch contributor insights filtering wildcards
问:
在 cloudwatch contributor insights 中筛选日志 StartsWith 筛选器应支持通配符(如 UI 建议),星号通配符(如 *usergroup 不起作用)。当我有斜杠和冒号等特殊字符时,它会过滤掉所有内容。
当我想过滤包含分号和斜杠的值时,我使用的过滤器语法示例:
{
"AggregateOn": "Count",
"Contribution": {
"Filters": [
{
"Match": "$.userIdentity",
"StartsWith": [
"abc:8923879:aa/usergroup"
]
}
}
}
当我想使用通配符进行过滤时,我使用的过滤器语法示例:
{
"AggregateOn": "Count",
"Contribution": {
"Filters": [
{
"Match": "$.userIdentity",
"StartsWith": [
"*usergroup"
]
}
}
}
我希望能够使用 StartsWith filter *usergroup 来仅过滤具有该组用户的日志。此外,如果该值包含斜杠、冒号等字符,我希望它会起作用,或者我需要一些转义。
如何使用通配符?我应该如何转义非字母数字值?
答: 暂无答案
评论