Good afternoon. I have log file that gets populated throughout the day as a number of scripts run at various times. It's not a huge file but one problem is that the log entries do not have timestamps for time of entry.
This being the case, I typically log in to the server through a PuTTY session and run a tail -f on that log file so I can see that those scripts are beginning. What I'd like to do is alter my tail -f to include a timestamp for each item displayed to the screen. I have used the following:
tail -f scheduler_date '+%m%d%y'
.log | sed s/^/$(date +%H:%M%_*)/
The problem here is that it uses the timestamp of the tail command, not the time each line enters the log file.
I have reviewed a few other cases to include the ones below but none that I've found provide precisely what I'm looking for. Any help would be appreciated.