Ad Widget

Collapse

Problem parsing WebSphere Systemout.log log time format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teopost
    Junior Member
    • Jul 2022
    • 3

    #1

    Problem parsing WebSphere Systemout.log log time format

    I created an item to read a websphere file (SystemOut.log)
    The file is read correctly with this regular expression

    log[/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/FEServer/SystemOut.log, "\[(.*)\]\s([a-zA-Z0-9]{8})\s+([^\s]+)\s+(O)\s([^\s]+)\s([^\s]+)\s([^\s]+)\s((.*))",,,skip,\0]

    Now I'm trying to read the localtime by parsing the date

    The date in the log file has this format

    Code:
    [7/27/22 17:16:59:712 CEST] 000000d0 SystemOut O CIWEB.IMViewerPlugin Warn : [unknown @ unknown] com.cstconsulting.tools.InvoiceConverter.InvoiceCo nverter.convertInvoice() Preparing...
    [7/27/22 17:16:59:713 CEST] 000000d0 SystemOut O CIWEB.IMViewerPlugin Warn : [unknown @ unknown] com.cstconsulting.tools.InvoiceConverter.InvoiceCo nverter.convertInvoice() OutputStream prepared
    [7/27/22 17:16:59:714 CEST] 000000d0 SystemOut O CIWEB.IMViewerPlugin Warn : [unknown @ unknown] com.cstconsulting.tools.InvoiceConverter.InvoiceCo nverter.convertInvoice() FOP ready
    [7/27/22 17:17:00:745 CEST] 000000d0 SystemOut O CIWEB.IMViewerPlugin Warn : [unknown @ unknown] com.cstconsulting.tools.InvoiceConverter.InvoiceCo nverter.convertInvoice() Transformer ready
    [7/27/22 17:17:00:745 CEST] 000000d0 SystemOut O Charset: UTF-8
    [7/27/22 17:17:00:745 CEST] 000000d0 SystemOut O CIWEB.IMViewerPlugin Warn : [unknown @ unknown] com.cstconsulting.tools.InvoiceConverter.InvoiceCo nverter.convertInvoice() Source obtained
    I created this log time format

    Code:
    xM/dd/yyxhh:mm:ss:xxx

    Click image for larger version  Name:	Schermata 2022-07-27 alle 19.26.19.png Views:	7 Size:	67.1 KB ID:	448795

    but it does not work

    Click image for larger version  Name:	Schermata 2022-07-27 alle 19.28.38.png Views:	4 Size:	95.1 KB ID:	448796

    any suggestions?
    Last edited by teopost; 28-07-2022, 10:34.
Working...