Brief-Wishbone9091
Member
Code:
2023-08-07 09:20:35 0123456789 INFO CustomerLogoutResource:95 - Entering logout api.
2023-08-07 09:20:35 0123456789 ERROR AppExceptionMapper:87 - Exception has been thrown by container
2023-08-07 09:20:35 0123456789 ERROR AppExceptionMapper:555 - Unchecked Exception
java.lang.NullPointerException
at NullPointerExceptionExample.printLength(NullPointerExceptionExample.java:3)
at NullPointerExceptionExample.main(NullPointerExceptionExample.java:8)
The logs look like this.
[LIST]
[*]There is not phone number=0123456789 in every line.
[/LIST]
So,
egrep -i "0123456789" application.log | less
Will skip the lines that don't contain that java null pointer exception which is extremely important.
egrep -i "0123456789| 'java'| 'at' " application.log | less
could work but it's too hacky and not ideal solution imo.
Is there anything that is better.
Problem statement: Old vi editor(although it says vim) and no full searched keyword highlighting feature which is terrible for eyes and stress.