我需要将csv文件转换为syslog。
CSV:(来自)
"Type","RowID","Name"
"SecurityIncident","ace5c4550c76","MalwareInfection"
"SecurityIncident","ace5c4550c77","MalwareInfection"
系统日志:至
<13>1 2023-09-09T10:19:28.428851-08:00 DESKTOP-TVVB676 - - - [LOG@14506 EventReceivedTime="2020-09-09 10:19:28" SourceModuleName="csv" SourceModuleType="file" Type="SecurityIncident" RowID="ace5c4550c76" Name="MalwareInfection"
<13>1 2023-09-09T10:19:28.428851-08:00 DESKTOP-TVVB676 - - - [LOG@14506 EventReceivedTime="2020-09-09 10:19:28" SourceModuleName="csv" SourceModuleType="file" Type="SecurityIncident" RowID="ace5c4550c77" Name="MalwareInfection"
如何在Java中做到这一点?是否有可用的Java库?
1条答案
按热度按时间xiozqbni1#
将CSV转换为Syslog的java代码
输出量: