- 论坛徽章:
- 0
|
日志文件存放位置为:
/batch/kbwz3100301d/logs/job/kbwz3100301d_200512xxx.log
/batch/kbwz3100301d/logs/job/kbwz3100301d_200512yyy.log
...
...
/batch/kbwz3100301m/logs/job/kbwz3100301m_200512zzz.log
/batch/kbwz3100301m/logs/job/kbwz3100301d_200512xxx.log
...
...
...
日志文件如下:
2005-12-14 13:59:15.433 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Module QueModule initialization has completed!
2005-12-14 13:59:15.434 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Module QueModule execution started!
2005-12-14 13:59:15.434 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] start to execute threadarray!
2005-12-14 13:59:15.435 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] thread 07VIP1 started!
2005-12-14 14:04:31.110 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Created File Name:SI_wenzhou_monthly_07VIP120051214135915001
.txt
2005-12-14 14:04:31.113 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] File Size:7091435
2005-12-14 14:04:31.113 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Records:50000
2005-12-14 14:04:31.115 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Created File Name:SI_wenzhou_monthly_07VIP120051214135915002
.txt
2005-12-14 14:04:31.115 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] File Size:7108139
2005-12-14 14:04:31.116 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Records:50000
2005-12-14 14:04:31.118 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Created File Name:SI_wenzhou_monthly_07VIP120051214135915003
.txt
2005-12-14 14:04:31.118 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] File Size:7163700
2005-12-14 14:04:31.118 [StreamID: 01_SI_MONTHLY_07][Module: QueModule] Records:50000
kbwz3100301d kbwz3100301m这样的是job id
现在希望实现这样的功能,抽取所有/batch/kbwz*开头的目录中的job/的所有log中的created file name,file size, records,并且写入到文件report中去.
谢谢各位大虾提示思路,嘿嘿,有代码就非常感谢拉.因为sed,awk我都还没入门.
[ 本帖最后由 webdev 于 2005-12-19 15:45 编辑 ] |
|