日志剖析,并将成果写入文件ITeye - 乐橙lc8

日志剖析,并将成果写入文件ITeye

2019年03月04日08时05分40秒 | 作者: 宇浩 | 标签: 结束,过错,数据文件 | 浏览: 943

grep "= OrderInfo Start =" -A9 $logFile| grep "com.unionpay.upop.web.exceptions.ValidationException" -B8| awk BEGIN{FS="\n";RS="\n"}{print $1,":" ,$2,":",$3,":",$4,":",$5,":",$6,":",$7,":",$9}| awk -F : {print $17,"|", $2,"|null|",$4,"|",$6,"|",$8,"|",$10,"|",$12,"|",$14,":",$15}| awk {gsub(/[ \t\n\r]/,"")}{print $1}| awk -v var="$formattedDate" {print $1"|"var} $errorReportFile echo " info 原始表数据文件生成结束,途径:["$errorReportFile"]" # 计算过错类型 createTime=`date +%Y-%m-%d\ %H:%M:%S` grep "= OrderInfo Start =" -A9 $logFile| grep "com.unionpay.upop.web.exceptions.ValidationException"| awk -v var="$createTime" -F ": " {print $2"|"var}| sort | uniq $errorReportTypeFile echo " info 过错类型数据文件生成结束,途径:["$errorReportTypeFile"]" echo " error ["$logFile"]不存在" date_end=$(date +%s) echo " info ["$dt"]报文过错计算结束,执行时间:$((date_end-date_start))秒"
版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表乐橙lc8立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章