首页 > 解决方案 > 基于时间范围,如何在python中从应用程序日志中grep整个线程日志

问题描述

基于时间范围,如何在 python 中从应用程序日志中 grep 整个线程跟踪。

如何从 python 中的应用程序日志中获取整个线程行。时间窗口将是用户参数。

示例日志:

2019-04-05 thread1:File created with reference1
2019-04-05 thread1: splitted successful 2019-04-05 thread1: archival moved. 
2019-04-05 thread2: file created with reference 2. 

标签: python

解决方案


推荐阅读