Log message format :
Severity Time Generated Time Reported HostName Message
eg for the above.
info Mar 10 04:02:02 Mar 10 04:02:02 hostname message
Output on the UI should be in the format:
Time Generated Time Reported HostName Severity Message
I would be having some lakhs of records in my file.
While looping through all,I should take each log record mentioned in the first format,parse it or split it
and then display on the UI in the second format.
I am currently splitting the record using space and then looking for each thing.
In this process,I am using strings which is consuming more memory as there are so many records.
Can anyone define any
pattern for this.
Please help.