我被指派为测试人员以这种格式创建测试数据
--|id(13603644000102161)|hrtime(2013-02-09T00:00:00.010+0100)--
Event-Timestamp=1360364400,
NAS-Port Id=L2TP LNS 204639,
Service-Type=Framed-User,
NAS-Identifier=ba2-stlns-67,
Tunnel-Server-Auth-Id= ba2-stlns-67,
Tunnel-Type=L2TP,
NAS-Port-Type=Virtual,
Tunnel-Client-Endpoint= xxx.81.232.209,
Acct-Session Id=FF10FFFF58031F5F-50FE2ADA,
User-Name=uid@edunet.sk, NAS-Port=1862066337,
Acct-Session-Time=1529998,
Tunnel-Medium-Type=IPv4,
Acct-Input-Octets=-277291554,
Acct-Authentic=Radius,
Tunnel-Client-Auth-Id= edunet,
Framed-IP-Address=172.16.0.78,
Acct-Status-Type=Interim-Update,
Framed-IP-Netmask=255.255.255.255,
Framed-Protocol=PPP,
Calling-Station-Id=#/108778489/BB_WOLK-12 atm 1/1/09/60:1.32,
Framed-Route=192.168.9.60/30 172.16.0.78,
Acct-Output-Packets=66401591,
NAS-IP-Address=213.81.255.165,
Tunnel-Server-Endpoint= 87.197.192.235
对于这些属性中的每一个,我都有一些必须满足的条件。我正在寻找一种工具,我可以在其中输入正则表达式或其他条件,它会生成类似这样的东西......
是的......在java中编写这个代码应该相对容易,但我有aprx。需要考虑的 50 种日志格式。