AWS Cloudwatch过滤器日志事件

时间:2020-01-10 08:19:31

标签: amazon-web-services amazon-cloudwatchlogs

我在AWS Cloudwatch中拥有json日志。下面是日志的示例格式:

{
    "@timestamp": "2020-01-10T06:49:47.180+00:00",
    "message": "Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext",
    "logger_name": "org.springframework.context.annotation.AnnotationConfigApplicationContext",
    "thread_name": "main",
    "level": "INFO",
    "level_value": 20000,
    "application": "test"
}

我想根据时间戳字段过滤日志,但是由于时间戳字段包含字符“ @”,因此我无法对其进行过滤。可以使用此类键进行过滤吗?

我正在使用以下语法过滤字段:

{$。level =“ INFO”} -根据级别字段值进行过滤。

{$。@ timestamp = *} -根据时间戳字段值进行过滤。

0 个答案:

没有答案