[英]How to filter GCP stackdriver logs by timestamp from python for given Date range
FILTER = ' timestamp > "2021-04-15T01:00:00Z" AND timestamp < "2021-04-20T01:00:00Z" ' FILTER = ' 时间戳 > "2021-04-15T01:00:00Z" AND 时间戳 < "2021-04-20T01:00:00Z" '
this filter wonn't work for given date range, what can be the possible FILTER in python that can fetch logs within the given datetime range此过滤器不适用于给定的日期范围,python 中可能的 FILTER 可以在给定的日期时间范围内获取日志
Instead FILTER = ' timestamp > "2021-04-15T01:00:00Z" AND timestamp < "2021-04-20T01:00:00Z而是 FILTER = ' timestamp > "2021-04-15T01:00:00Z" AND timestamp < "2021-04-20T01:00:00Z
I simply removed "AND" keyword and it worked for me in python.我只是删除了“AND”关键字,它在 python 中对我有用。
FILTER = ' timestamp > "2021-04-15T01:00:00Z" timestamp < "2021-04-20T01:00:00Z FILTER = ' 时间戳 > "2021-04-15T01:00:00Z" 时间戳 < "2021-04-20T01:00:00Z
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.