how to check production logs
i logged to production server i went to server log path.
i did
ls -ltr
i see bunch of log files at different timestamps
lets say xyz.log is at 1:30 am which i am interested to see.
how to open and hjow to see it?
when i logged using winscp says log in denied to copy over to windows laptoip to check.
like i want to zgprep or grep all "NullPointerErrors" between 12:30 AM till 2:30AM how do i check?
Also how to check how many times it was restarted?
any good best practices on production logs?
please advise any god links, resources on it?
Our community of experts have been thoroughly vetted for their expertise and industry experience.