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
I created this log time format

but it does not work

any suggestions?
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
Code:
xM/dd/yyxhh:mm:ss:xxx
but it does not work
any suggestions?