Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS cloudwatch insights错误类别查询_Amazon Web Services_Amazon Cloudwatch_Aws Cloudwatch Log Insights - Fatal编程技术网

Amazon web services AWS cloudwatch insights错误类别查询

Amazon web services AWS cloudwatch insights错误类别查询,amazon-web-services,amazon-cloudwatch,aws-cloudwatch-log-insights,Amazon Web Services,Amazon Cloudwatch,Aws Cloudwatch Log Insights,我有两个每天运行的bath作业,失败时通常会抛出两种错误: “psycopg2.DataError”和“broadcastyearweek” 我想得到不同类型错误的失败次数 我曾尝试过类似的方法,但没有效果: fields @timestamp, @message | filter @message like "broadcastyearweek" or @message like 'psycopg2.DataError' | parse "broadcastyea

我有两个每天运行的bath作业,失败时通常会抛出两种错误:

“psycopg2.DataError”和“broadcastyearweek”

我想得到不同类型错误的失败次数

我曾尝试过类似的方法,但没有效果:

fields @timestamp, @message
| filter @message like "broadcastyearweek" or @message like 'psycopg2.DataError'
| parse "broadcastyearweek" as @category, "psycopg2.DataError" as @category
| display @timestamp, @message, @category
| stats count() as counts by @category
| sort @timestamp desc
| limit 1000

你能在这里发布你的日志信息吗?