根据一个或多个日志行识别状态
我有文件导入日志,
01-01-21 10:00:00 File Read , filename_a
01-01-21 10:00:01 File failed , filename_a
01-01-21 10:00:01 File Read , filename_b
01-01-21 10:00:02 File failed , filename_a
01-01-21 10:00:03 File succeed, filename_a
01-01-21 10:00:04 File failed , filename_b
如何检测文件“a”已成功导入,而文件“b”处于失败模式?
我尝试过 transaction
但无济于事。
I have logs for file imports
01-01-21 10:00:00 File Read , filename_a
01-01-21 10:00:01 File failed , filename_a
01-01-21 10:00:01 File Read , filename_b
01-01-21 10:00:02 File failed , filename_a
01-01-21 10:00:03 File succeed, filename_a
01-01-21 10:00:04 File failed , filename_b
how can I detect that file "a" has been successfully imported, while file "b" is in a failure mode?
I've tried transaction
but to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

提取状态和文件名字段后,选择每个文件的最新事件。这会告诉你当前的状态。
Once you have the status and filename fields extracted, select the most recent event for each file. That will tell you the current status.