-1

We have to identify and extract the date from given samplese

Oct  4 07:44:45  cli[1290]: PAPI_Send: To: 7f000001:8372 Type:0x4 Timed out. 

Oct  4 08:16:01  webui[1278]: USER:admin@192.168.100.205 COMMAND:<wlan ssid-profile "MFI-SSID" > -- command executed successfully 

Oct  4 08:16:01  webui[1278]: USER:admin@192.168.100.205 COMMAND:<wlan ssid-profile "MFI-SSID" opmode opensystem > -- command executed successfully 

Here the main problem is, Date format is versatile. it may be "oct 4 2004" or "oct/04/2004" etc

4

1 回答 1

1

解析是处理此类问题的最佳方法。所以学习解析技术,然后在你的项目中使用它们并享受。事件日志解析器的适当设计模式?

于 2012-06-04T19:21:29.890 回答