【发布时间】:2013-11-26 21:14:03
【问题描述】:
我得到以下日志:
2013-10-24 18:35:49,728 ERROR [xx.xx.xx.xx.xx.xx] (xx.xx.xx.xx.xx) Manila Olongapo Leyte Tacloban has updated their subscriber details. But, the Regional Account Update interface call has failed for the following Local Registries: <br/>Visayas<br/>Data between LRA and the above Local Registries is out of synch as a result.
我希望结果输入采用以下格式。有什么更好的方法来做到这一点——也许使用awk 或sed?请指教。
$Province$ has updated their subscriber details. However, the Customer Account Update interface call has failed for the following Land Registries:
$Region Name$
【问题讨论】:
-
欢迎来到 Stack Overflow。请尽快阅读About 页面。传入记录是否在 3 行上?您希望
$Province$和$Region Name$出现在输出中吗?输入包含“区域帐户”但输出包含“客户帐户”是偶然还是故意的。 'Manila Olongapo Leyte Tacloban' 列表是否有所不同? -
如果 $Region Name$ 或 $Province$ 不遵循与您示例中相同数量的字段,您想要的此日志解析器将失败。请使用更准确的要求编辑您的问题。