0

我需要在 Kibana 上显示一个图表,我需要在其中处理以下日志。当向客户发送电子邮件时,会记录以下行。我必须编写 logstash 过滤器来将以下日志解释为 1。电子邮件发送给谁。2. 所请求电子邮件的参考编号是多少?(此处REF为REF/2019.45815) 3. 以下日志中的“返回码”(返回码为零表示邮件发送成功,除零以外的任何其他数字表示邮件未成功发送)

由于这是一个多行日志,我很难创建一个关键字与另一个关键字的关系。有可能吗?怎么做?任何线索将不胜感激。提前致谢!

2019-10-02 13:07:46.004 INFO main [plannedLogger] - EMailListTo:ATSNetworking@aggreko.biz 2019-10-02 13:07:46.005 INFO main [plannedLogger] - EMailListTo: raj.bassan@orange.com 2019- 10-02 13:07:46.005 INFO main [plannedLogger] - EMailListTo:cairo.csp@orange.com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - EMailListTo:harsh.bhardwaj@orange.com 2019- 10-02 13:07:46.005 INFO main [plannedLogger] - EmailListCc:r.sarthy@orange.com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - EmailListCc: rahulk.sharma@orange.com 2019- 10-02 13:07:46.005 信息主 [plannedLogger] - EmailListCc:chris.hobbs@orange。com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - EmailListCc:david.dupre@orange.com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - EmailListCc:raj.bassan@orange。 com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - EmailListCc:devanshu.kumar@orange.com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - EmailListCc:leadro.reis@orange。 com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - 应该是 TO 列表的 finalEmailString 是:ATSNetworking@aggreko.biz,raj.bassan@orange.com,cairo.csp@orange.com,苛刻.bhardwaj@orange.com 2019-10-02 13:07:46。005 INFO main [plannedLogger ] - 应该是 CC 列表的 ccfinalEmailString 是:r.sarthy@orange.com, rahulk.sharma@orange.com, chris.hobbs@orange.com, david.dupre@orange.com, raj .bassan@orange.com、devanshu.kumar@orange.com、leadro.reis@orange.com 2019-10-02 13:07:46.005 INFO main [plannedLogger] - FileName - content.html FileList - output_attachments/planned_notification_{18073 }.html DocIncluded - INCLU 2019-10-02 13:07:46.005 INFO main [plannedLogger] - FileName - ORANGE_OBS_LOGO.png FileList - output_attachments/ORANGE_OBS_LOGO.png DocIncluded - JOIN 2019-10-02 13:07:46.005 INFO main [计划记录器] - 文件名 -carrier_notification.ics 文件列表 - output_attachments/carrier_notification_{18073}。ics DocIncluded - JOIN 2019-10-02 13:07:46.005 INFO main [plannedLogger ] - FileName - Carrier_maintenance_data_G_02_Oct_2019_18073_AGGREKO_PLC.xlsx FileList - output_attachments/maintanance_data_file_cmt_{18073}.xlsx DocIncluded - JOIN 2019-10-02 13:07:46.005 DEBUG main [plannedLogger ] - 通过 flowtool 开始向收件人发送邮件(对于正常的 scanario)主题 -Orange Business Services Carrier Planned Maintenance for AGGREKO PLC 2019-10-02 13:07:47.576 INFO main [plannedLogger] - 从流返回代码:0 2019-10-02 13:07:47.576 INFO main [plannedLogger ] - -----操作完成 2019-10-02 13:07:47.576 INFO main [plannedLogger ] - 邮件发送成功!!!2019-10-02 13:07:47.576 INFO main [plannedLogger] - 电子邮件已成功发送给收件人,状态:true 2019-10-02 13:07:47.604 INFO main [plannedLogger] - 成功更新 MAIL_STATUS 以进行维护:[52320134: REF/2019.45815:LOGGED:CSM] 结果值为:1

4

0 回答 0